Fix new pylint errors

This commit is contained in:
Randall Leeds 2019-03-16 16:11:02 -07:00
parent 2b07f2be28
commit cc8e67ea83
2 changed files with 2 additions and 4 deletions

View File

@ -369,8 +369,7 @@ def import_app(module):
if module.endswith(".py") and os.path.exists(module): if module.endswith(".py") and os.path.exists(module):
msg = "Failed to find application, did you mean '%s:%s'?" msg = "Failed to find application, did you mean '%s:%s'?"
raise ImportError(msg % (module.rsplit(".", 1)[0], obj)) raise ImportError(msg % (module.rsplit(".", 1)[0], obj))
else: raise
raise
mod = sys.modules[module] mod = sys.modules[module]

View File

@ -92,8 +92,7 @@ class EventletWorker(AsyncWorker):
def is_already_handled(self, respiter): def is_already_handled(self, respiter):
if respiter == EVENTLET_ALREADY_HANDLED: if respiter == EVENTLET_ALREADY_HANDLED:
raise StopIteration() raise StopIteration()
else: return super().is_already_handled(respiter)
return super().is_already_handled(respiter)
def init_process(self): def init_process(self):
super().init_process() super().init_process()