Skip to content

Commit

Permalink
REST API: more error handling for output generation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 28, 2024
1 parent fc9d662 commit 7cbcd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def make_response(response, actor=None, url=None, title=None, hfeed=None):
else:
assert False, f'Please file this as a bug! format {format} not implemented'

except (ValueError, NotImplementedError) as e:
except (AttributeError, KeyError, NotImplementedError, ValueError) as e:
logger.warning('converting to output format failed', exc_info=True)
return abort(400, f'Could not convert to {format}: {str(e)}')

Expand Down

0 comments on commit 7cbcd77

Please sign in to comment.