Skip to content

Commit

Permalink
removed str() around objects to be serialized. As None should stay in…
Browse files Browse the repository at this point in the history
…tact rather than become 'None' (#1932)
  • Loading branch information
Torxed authored Jul 17, 2023
1 parent 10fca16 commit e41900a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archinstall/lib/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit e41900a

Please sign in to comment.