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

Commit

Permalink
Fix a chicken-egg issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 23, 2020
1 parent e695a1d commit 20c7aae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import os
import sys

from canonicaljson import set_json_library

# Check that we're not running on an unsupported Python version.
if sys.version_info < (3, 5):
print("Synapse requires Python 3.5 or above.")
Expand All @@ -40,7 +38,12 @@
pass

# Use the standard library json implementation instead of simplejson.
set_json_library(json)
try:
from canonicaljson import set_json_library

set_json_library(json)
except ImportError:
pass

__version__ = "1.17.0"

Expand Down

0 comments on commit 20c7aae

Please sign in to comment.