Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2023-07-17 10:13:22 +0200
committerGitHub <noreply@github.com>2023-07-17 10:13:22 +0200
commite41900a25cfbf35e550863a8415a0c7a29c9e9b2 (patch)
tree2871bd9083820edc6fe850c8a29f6164e5b165e1
parent10fca1611d09965c23c5d917d2c41ddc838290b4 (diff)
removed str() around objects to be serialized. As None should stay intact rather than become 'None' (#1932)
-rw-r--r--archinstall/lib/general.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index c85208ec..473f85a4 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -79,7 +79,8 @@ def jsonify(obj: Any, safe: bool = True) -> Any:
return str(obj)
if hasattr(obj, "__dict__"):
return vars(obj)
- return str(obj)
+
+ return obj
class JSON(json.JSONEncoder, json.JSONDecoder):
"""