diff options
Diffstat (limited to 'representer.py')
-rw-r--r-- | representer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/representer.py b/representer.py index 085308c..25e53b9 100644 --- a/representer.py +++ b/representer.py @@ -309,7 +309,7 @@ class SafeRepresenter(BaseRepresenter): value = u'-.inf' else: value = to_unicode(repr(data)).lower() - if self.serializer.use_version == (1, 1): + if getattr(self.serializer, 'use_version', None) == (1, 1): if u'.' not in value and u'e' in value: # Note that in some cases `repr(data)` represents a float number # without the decimal parts. For instance: |