mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Raise syntax no longer accepts comma-separated arguments in python3
This commit is contained in:
parent
a67db4c46a
commit
de3905cd4b
1 changed files with 5 additions and 1 deletions
|
|
@ -224,7 +224,11 @@ class ModelAdmin2(with_metaclass(ModelAdminBase2)):
|
|||
'Cannot instantiate admin view "{}.{}". '
|
||||
'The error that got raised was: {}'.format(
|
||||
self.__class__.__name__, admin_view.name, e))
|
||||
raise (new_exception, None, trace)
|
||||
try:
|
||||
raise new_exception.with_traceback(trace)
|
||||
except AttributeError:
|
||||
raise (new_exception, None, trace)
|
||||
|
||||
pattern_list.append(
|
||||
url(
|
||||
regex=admin_view.url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue