Skip to content

Commit

Permalink
[#4801] Catch exception outside request context
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 28, 2019
1 parent cd8ef04 commit aa2a57e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/logic/__init__.py
Expand Up @@ -232,6 +232,9 @@ def _prepopulate_context(context):
except AttributeError:
# c.user not set
pass
except RuntimeError:
# Outside of request context
pass
except TypeError:
# c not registered
pass
Expand Down

0 comments on commit aa2a57e

Please sign in to comment.