changes to fix flake8 issues

This commit is contained in:
bharnden 2019-09-10 21:01:51 -07:00
parent 1fc8d647c3
commit dee91e97bf
23 changed files with 51 additions and 1005 deletions

View file

@ -550,7 +550,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
# TODO: this needs to be removed, make use of the broadcast message methods
replies = message_handler(message)
self.dispatch_replies(replies, message)
except:
except Exception:
logging.exception(
"%s: exception while handling message: %s",
threading.currentThread().getName(),
@ -946,7 +946,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
session = self.coreemu.create_session(master=False)
try:
session.open_xml(file_name, start=True)
except:
except Exception:
self.coreemu.delete_session(session.id)
raise
else: