Skip to content

Commit e41900a

Browse files
authored
removed str() around objects to be serialized. As None should stay intact rather than become 'None' (#1932)
1 parent 10fca16 commit e41900a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

archinstall/lib/general.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def jsonify(obj: Any, safe: bool = True) -> Any:
7979
return str(obj)
8080
if hasattr(obj, "__dict__"):
8181
return vars(obj)
82-
return str(obj)
82+
83+
return obj
8384

8485
class JSON(json.JSONEncoder, json.JSONDecoder):
8586
"""

0 commit comments

Comments
 (0)