feeder: fix check for authorization errors
This commit is contained in:
parent
00f34ea1b1
commit
2bab882337
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue