Code cleanup

* Streamline variable assignment
* Replace assignment with augmented assignment
* Remove unused variables and redundant parentheses
This commit is contained in:
Labrys 2016-06-05 02:31:04 -04:00
commit 94e8a45c62
11 changed files with 39 additions and 58 deletions

View file

@ -115,7 +115,6 @@ class DBConnection(object):
logger.log(u"DB error: " + str(e), logger.ERROR)
raise
except sqlite3.DatabaseError as e:
sqlResult = []
if self.connection:
self.connection.rollback()
logger.log(u"Fatal error executing query: " + str(e), logger.ERROR)