some cleanups

This commit is contained in:
Viktor Barzin 2025-06-08 20:58:28 +00:00
parent 831c45e1f5
commit 289206afc0
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
8 changed files with 20 additions and 17 deletions

View file

@ -263,9 +263,13 @@ class Listing:
if self.path_detail_json().exists():
with open(self.path_detail_json()) as f:
self._details_object = json.load(f)
return self._details_object # type: ignore
else:
return {}
return self._details_object # type: ignore
raise ValueError(
f"Detail object for listing {self.identifier} not found."
)
else:
return self._details_object
@property
def price(self) -> float: