Skip to content

Commit

Permalink
handle TypeError as well in case of missing 'Modified' field
Browse files Browse the repository at this point in the history
  • Loading branch information
dnet committed May 29, 2013
1 parent f130f2c commit 03cdb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def fetchFeed(feed):
pass
try:
feed.modified = datetime(*f.modified[:6])
except AttributeError:
except (TypeError, AttributeError):
pass
d = feed.updated
for item in reversed(f['entries']):
Expand Down

0 comments on commit 03cdb16

Please sign in to comment.