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>2021-11-09 19:23:29 +0100
committerAnton Hvornum <anton@hvornum.se>2021-11-09 19:23:29 +0100
commit4b4c66caa1a5f896e44e679e4e1afef5caa657e0 (patch)
treeeccc6caec668d64a8f1e065d4c2280ae59a092f2
parentb7fcbf13bc1d3d1b1a6255d6eb2986149fa56982 (diff)
Forgot to change the cls=JSON inside the recursive call of UNSAFE_JSON
-rw-r--r--archinstall/lib/general.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 5ab2181c..21683425 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -121,11 +121,11 @@ class JsonEncoder:
for key, val in list(obj.items()):
if isinstance(val, dict):
# This, is a EXTREMELY ugly hack.. but it's the only quick way I can think of to trigger a encoding of sub-dictionaries.
- val = json.loads(json.dumps(val, cls=JSON))
+ val = json.loads(json.dumps(val, cls=UNSAFE_JSON))
else:
- val = JsonEncoder._encode(val)
+ val = JsonEncoder._unsafe_encode(val)
- copy[JsonEncoder._encode(key)] = val
+ copy[JsonEncoder._unsafe_encode(key)] = val
return copy
else:
return JsonEncoder._encode(obj)