feeder: log WcsApiError (#23397)

This commit is contained in:
Frédéric Péters 2018-04-25 10:25:36 +02:00
parent f39ea073d5
commit b43eaa2eb5
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ CREATE TABLE public.dates AS (SELECT
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)
self.logger.error('failed to retrieve formdef %s (%s)', formdef.slug, e)
if 'cubes_model_dirs' in self.config:
model_path = os.path.join(self.config['cubes_model_dirs'], '%s.model' % self.schema)
with open(model_path, 'w') as f: