diff --git a/benchmarks/ldtk_cjson.py b/benchmarks/ldtk_cjson.py index 20965d2b..36529080 100644 --- a/benchmarks/ldtk_cjson.py +++ b/benchmarks/ldtk_cjson.py @@ -7,7 +7,11 @@ import sys is_pkpy = not hasattr(sys, 'getrefcount') if is_pkpy: - import cjson as json + try: + import cjson as json + except ImportError: + print('[cJSON not Enabled]') + exit(0) else: import json