feeder: fix check for authorization errors

This commit is contained in:
Benjamin Dauvergne 2016-12-11 01:17:44 +01:00
parent 00f34ea1b1
commit 2bab882337
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class WcsOlapFeeder(object):
formdef_feeder.feed()
except WcsApiError, e:
# ignore authorization errors
if (len(e.args) > 2 and hasattr(e.args[2], 'response')
if (len(e.args) > 2 and getattr(e.args[2], 'response', None)
and e.args[2].response.status_code == 403):
continue
self.logger.error('failed to retrieve formdef %s', formdef.slug)