Commit b4dbfa98 by Nikolaus Schlemm

only catch relevant exceptions ;)

parent f8c1481d
...@@ -83,7 +83,10 @@ class APIView(View): ...@@ -83,7 +83,10 @@ class APIView(View):
field_name_types[name] = field.__class__.__name__ field_name_types[name] = field.__class__.__name__
actions[method] = field_name_types actions[method] = field_name_types
except: except exceptions.PermissionDenied:
# don't add this method
pass
except exceptions.NotAuthenticated:
# don't add this method # don't add this method
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment