fix flake8 complaints

This commit is contained in:
Friedrich Lindenberg
2017-12-05 17:21:08 +01:00
parent db9729a228
commit 2cf9da068a
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ class Database(object):
if error_type is None:
try:
self.commit()
except:
except Exception:
with safe_reraise():
self.rollback()
else:
+1 -1
View File
@@ -460,7 +460,7 @@ class Table(object):
offset=_offset)
if len(order_by):
query = query.order_by(*order_by)
conn = self.db.executable
if _streamed:
conn = self.db.engine.connect()