diff --git a/django/core/serializers/__init__.py b/django/core/serializers/__init__.py
index 7afc94c..a9d537f 100644
a
|
b
|
def unregister_serializer(format):
|
63 | 63 | del _serializers[format] |
64 | 64 | |
65 | 65 | def get_serializer(format): |
| 66 | if format in get_serializer_formats(): |
| 67 | raise SerializerNotFound() |
66 | 68 | if not _serializers: |
67 | 69 | _load_serializers() |
68 | 70 | return _serializers[format].Serializer |
diff --git a/django/core/serializers/base.py b/django/core/serializers/base.py
index cdcc7fa..64fc3d7 100644
a
|
b
|
from django.db import models
|
8 | 8 | from django.utils.encoding import smart_str, smart_unicode |
9 | 9 | from django.utils import datetime_safe |
10 | 10 | |
| 11 | class SerializerNotFound(Exception): |
| 12 | """A requested serializer was not found.""" |
| 13 | pass |
| 14 | |
11 | 15 | class SerializationError(Exception): |
12 | 16 | """Something bad happened during serialization.""" |
13 | 17 | pass |