some cleanups
This commit is contained in:
parent
831c45e1f5
commit
289206afc0
8 changed files with 20 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue