Skip to content

Commit

Permalink
DateTime SyntaxError exception imported from DateTime.interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jbofill committed May 29, 2014
1 parent 347fb2a commit 4292ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Products/feedfeeder/extendeddatetime.py
@@ -1,4 +1,5 @@
from DateTime import DateTime
from DateTime.interfaces import SyntaxError as DateTimeSyntaxError

#http://www.timeanddate.com/library/abbreviations/timezones/na/
alttzmap= dict(ndt=u'GMT-0230',
Expand All @@ -21,7 +22,7 @@ def extendedDateTime(dt):
dt = dt.replace('-','GMT-')
try:
return DateTime(dt)
except DateTime.SyntaxError:
except DateTimeSyntaxError:
frags = dt.split()
newtz = alttzmap.get(frags[-1].lower(), None)
if newtz is None:
Expand Down

0 comments on commit 4292ee2

Please sign in to comment.