--- a/devtools/__init__.py Tue Sep 20 15:14:04 2011 +0200
+++ b/devtools/__init__.py Wed Sep 21 17:38:00 2011 +0200
@@ -577,7 +577,7 @@
templcursor.close()
cnx.close()
init_repository(self.config, interactive=False)
- except:
+ except BaseException:
if self.dbcnx is not None:
self.dbcnx.rollback()
print >> sys.stderr, 'building', self.dbname, 'failed'
@@ -752,13 +752,13 @@
value = value.rsplit('.', 1)[0]
try:
row[cellindex] = strptime(value, '%Y-%m-%d %H:%M:%S')
- except:
+ except Exception:
row[cellindex] = strptime(value, '%Y-%m-%d')
if vtype == 'Time' and type(value) is unicode:
found_date = True
try:
row[cellindex] = strptime(value, '%H:%M:%S')
- except:
+ except Exception:
# DateTime used as Time?
row[cellindex] = strptime(value, '%Y-%m-%d %H:%M:%S')
if vtype == 'Interval' and type(value) is int: