clan-cli: Fix bug where --target_host is getting ignored

This commit is contained in:
Qubasa
2024-10-05 18:50:40 +02:00
parent 9530d6aee7
commit 5967bb347c
7 changed files with 35 additions and 15 deletions

View File

@@ -10,6 +10,6 @@ class ClanJSONEncoder(json.JSONEncoder):
return o.to_json()
# Check if the object is a dataclass
if dataclasses.is_dataclass(o):
return dataclasses.asdict(o)
return dataclasses.asdict(o) # type: ignore[call-overload]
# Otherwise, use the default serialization
return super().default(o)