Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
Update webtag_data.py
Browse files Browse the repository at this point in the history
Try to avoid QuantifiedCode warning on "Empty exception handler"
  • Loading branch information
textbook committed Sep 9, 2015
1 parent 75a5bc3 commit a42e703
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions py_wlc/data/webtag_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ def from_latest_json(cls, dir_):
try:
data = json.load(file_)
except ValueError:
pass
else:
date = data.get("released", "")
if latest_date is None or date > latest_date:
latest_data = data
latest_date = date
continue
date = data.get("released", "")
if latest_date is None or date > latest_date:
latest_data = data
latest_date = date
if latest_data is not None:
return cls(**latest_data)

Expand Down

0 comments on commit a42e703

Please sign in to comment.