diff --git a/gracedb/events/view_utils.py b/gracedb/events/view_utils.py index ee8fcfd6d77804b39760fe356b10660f665293b5..49ce39446e979cd5e103c56786cbfd4754d6e0c1 100644 --- a/gracedb/events/view_utils.py +++ b/gracedb/events/view_utils.py @@ -104,7 +104,7 @@ def reverse(name, *args, **kw): # This probably only works if you give app_names which are the same # and namespaces that are different. - if 'request' in kw and 'current_app' not in kw: + if kw.get('request', None) is not None and 'current_app' not in kw: request = kw['request'] # For some reason, resolve() does not seem to like the script_prefix. # So, remove it.