From 3f90c684834dc32594a4854236c561bb9e1c798f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 21 Jun 2022 19:11:12 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 6 +++++- kivyblocks/dg.py | 5 ++++- kivyblocks/version.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index 30513d4..dcb5a90 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -1,7 +1,11 @@ import os import sys import codecs -import ujson as json +# import ujson as json +try: + import ujson as json +except: + import json from traceback import print_exc from functools import partial diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index 5463bef..545a2d0 100755 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -1,5 +1,8 @@ import time -import ujson as json +try: + import ujson as json +except: + import json from functools import partial from kivy.logger import Logger diff --git a/kivyblocks/version.py b/kivyblocks/version.py index 44b1806..407b8a2 100644 --- a/kivyblocks/version.py +++ b/kivyblocks/version.py @@ -1 +1 @@ -__version__ = '0.2.6' +__version__ = '0.2.7'