py2hackCraft2 1.0.29__tar.gz → 1.0.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/PKG-INFO +1 -1
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft/modules.py +7 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft2.egg-info/PKG-INFO +1 -1
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/setup.py +1 -1
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/README.md +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.0.29 → py2hackcraft2-1.0.30}/setup.cfg +0 -0
|
@@ -898,6 +898,13 @@ class Entity:
|
|
|
898
898
|
|
|
899
899
|
if not result: # resultが空の辞書であれば
|
|
900
900
|
return None
|
|
901
|
+
try:
|
|
902
|
+
result = json.loads(self.client.result)
|
|
903
|
+
if not result:
|
|
904
|
+
return None
|
|
905
|
+
except json.JSONDecodeError:
|
|
906
|
+
# 例外が発生した場合、無効なJSONとして処理し、Noneを返す
|
|
907
|
+
return None
|
|
901
908
|
|
|
902
909
|
block = Block(**result)
|
|
903
910
|
return block
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|