A couple bugs in loading authors
This commit is contained in:
parent
e9393ede28
commit
3a8d84e9b1
2 changed files with 8 additions and 1 deletions
|
@ -198,6 +198,8 @@ def has_attr(obj, key):
|
|||
|
||||
def get_date(date_string):
|
||||
''' helper function to try to interpret dates '''
|
||||
if not date_string:
|
||||
return None
|
||||
try:
|
||||
return pytz.utc.localize(parser.parse(date_string))
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue