mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix new pylint errors
This commit is contained in:
parent
2b07f2be28
commit
cc8e67ea83
@ -369,8 +369,7 @@ def import_app(module):
|
||||
if module.endswith(".py") and os.path.exists(module):
|
||||
msg = "Failed to find application, did you mean '%s:%s'?"
|
||||
raise ImportError(msg % (module.rsplit(".", 1)[0], obj))
|
||||
else:
|
||||
raise
|
||||
raise
|
||||
|
||||
mod = sys.modules[module]
|
||||
|
||||
|
||||
@ -92,8 +92,7 @@ class EventletWorker(AsyncWorker):
|
||||
def is_already_handled(self, respiter):
|
||||
if respiter == EVENTLET_ALREADY_HANDLED:
|
||||
raise StopIteration()
|
||||
else:
|
||||
return super().is_already_handled(respiter)
|
||||
return super().is_already_handled(respiter)
|
||||
|
||||
def init_process(self):
|
||||
super().init_process()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user