Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Error on code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Jan 2, 2017
1 parent c70b48a commit 8ba5317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plone.server/plone/server/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def default(self, obj):
if isinstance(obj, complex):
return [obj.real, obj.imag]
if isinstance(obj, datetime):
serial = obj.isoformat()
return serial
return obj.isoformat()
try:
iterable = iter(obj)
except TypeError:
Expand Down

0 comments on commit 8ba5317

Please sign in to comment.