adding better exception messages and interrupt free crawling
This commit is contained in:
parent
874fed3e8f
commit
f98cd02696
3 changed files with 8 additions and 4 deletions
|
|
@ -15,6 +15,5 @@ for listing in tqdm(filtered_listings):
|
|||
d = detail_query(listing.identifier)
|
||||
with open(listing.path_detail_json(), "w") as f:
|
||||
json.dump(d, f)
|
||||
except:
|
||||
print("Failed at: ", listing.identifier)
|
||||
raise
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue