mirror of
https://github.com/Hopiu/django.git
synced 2026-03-30 12:50:24 +00:00
Fixed Python 3 syntax error introduced in [c72392da]
This commit is contained in:
parent
67863b3bfe
commit
498014ccd5
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ def register_serializer(format, serializer_module, serializers=None):
|
|||
|
||||
try:
|
||||
module = importlib.import_module(serializer_module)
|
||||
except ImportError, exc:
|
||||
except ImportError as exc:
|
||||
bad_serializer = BadSerializer(exc)
|
||||
|
||||
module = type('BadSerializerModule', (object,), {
|
||||
|
|
|
|||
Loading…
Reference in a new issue