mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-29 02:54:47 +00:00
fixing possible errors on pypy2
This commit is contained in:
parent
7e7542ef2b
commit
2f43a66055
1 changed files with 1 additions and 2 deletions
|
|
@ -124,8 +124,7 @@ class Admin2(object):
|
|||
import_module("%s.admin2" % app_name)
|
||||
except ImportError as e:
|
||||
|
||||
if str(e) == "No module named admin2" \
|
||||
or str(e) == "No module named '%s.admin2'" % (app_name):
|
||||
if str(e).startswith("No module named") and 'admin2' in str(e):
|
||||
continue
|
||||
raise e
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue