Skip to content

Commit 80eea3e

Browse files
committed
raise NoSignpostException if fetch_dict is empty
1 parent 755d1db commit 80eea3e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doglib/doglib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def _fetch(self, pid: PID) -> dict:
6969
print("Using signpost")
7070
fetch_result: FetchResult = parser.fetch(response)
7171
fetch_dict = _dataclass_to_dict(fetch_result)
72+
if not fetch_dict:
73+
raise NoSignpostException("No signpost")
7274
return fetch_dict
7375
else:
7476
raise NoSignpostException("No signpost")

0 commit comments

Comments
 (0)