remove bare exceptions
This commit is contained in:
parent
abfdd3df29
commit
6ed5188c07
3 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ def changeset_detail(request, pk):
|
|||
if changeset.can_edit(request):
|
||||
try:
|
||||
changed_object = changeset.changed_objects_set.get(pk=restore)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue