only catch relevant exceptions ;)

This commit is contained in:
Nikolaus Schlemm 2013-05-18 17:10:13 +02:00
parent f8c1481d4b
commit b4dbfa9832

View File

@ -83,7 +83,10 @@ class APIView(View):
field_name_types[name] = field.__class__.__name__
actions[method] = field_name_types
except:
except exceptions.PermissionDenied:
# don't add this method
pass
except exceptions.NotAuthenticated:
# don't add this method
pass