forked from platypush/platypush
We shouldn't call dateutil.parser if t has already been deserialized to a datetime.
This commit is contained in:
parent
c311987741
commit
ca7f042ccc
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ class RssPlugin(RunnablePlugin):
|
||||||
t = var.get(varname)
|
t = var.get(varname)
|
||||||
|
|
||||||
if t:
|
if t:
|
||||||
return dateutil.parser.isoparse(t)
|
if not isinstance(t, datetime.datetime):
|
||||||
|
t = dateutil.parser.isoparse(t)
|
||||||
|
return t
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue