Permalink
Browse files

Print exceptions

  • Loading branch information...
dcramer committed Aug 31, 2010
1 parent 489d426 commit 560f60cf7249bfe14a66bf868fb2965c2183264e
Showing with 3 additions and 2 deletions.
  1. +3 −2 parser.py
View
@@ -221,11 +221,12 @@ def begin(self):
if not tokens:
continue
-
+
date = ' '.join(broken[0:2])
try:
date = datetime.datetime.strptime(date, '%Y-%m-%d %H:%M:%S')
- except:
+ except Exception, exc:
+ print exc
continue
if tokens[0].startswith('<') or tokens[0].startswith('/') or tokens[0].startswith('*'):

0 comments on commit 560f60c

Please sign in to comment.