Skip to content

Commit

Permalink
Fix new pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Mar 16, 2019
1 parent 2b07f2b commit cc8e67e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gunicorn/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
3 changes: 1 addition & 2 deletions gunicorn/workers/geventlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def patch(self):
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()
Expand Down

0 comments on commit cc8e67e

Please sign in to comment.