Skip to content

Commit d51fd94

Browse files
committed
blacken
1 parent 1d6acc3 commit d51fd94

File tree

1 file changed

+2
-2
lines changed
  • packages/python/plotly/plotly/io

1 file changed

+2
-2
lines changed

Diff for: packages/python/plotly/plotly/io/_json.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,13 @@ def clean_to_json_compatible(obj, **kwargs):
515515
# to string since engine can do that
516516
obj = obj.replace(tzinfo=None)
517517
obj = obj.to_pydatetime()
518-
except(TypeError, AttributeError):
518+
except (TypeError, AttributeError):
519519
pass
520520

521521
if not datetime_allowed:
522522
try:
523523
return obj.isoformat()
524-
except(TypeError, AttributeError):
524+
except (TypeError, AttributeError):
525525
pass
526526
elif isinstance(obj, datetime.datetime):
527527
return obj

0 commit comments

Comments
 (0)