mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
29f0394cdd
commit
7d0787cd1a
@ -50,3 +50,9 @@ disable=
|
||||
wrong-import-order,
|
||||
ungrouped-imports,
|
||||
unused-argument,
|
||||
useless-object-inheritance,
|
||||
useless-import-alias,
|
||||
comparison-with-callable,
|
||||
try-except-raise,
|
||||
# TODO: use dict comprehensions once we drop Python 2.6 support.
|
||||
consider-using-dict-comprehension,
|
||||
|
||||
@ -30,7 +30,7 @@ class WSGIApplication(Application):
|
||||
from .pasterapp import paste_config
|
||||
return paste_config(self.cfg, self.cfgurl, self.relpath)
|
||||
|
||||
if len(args) < 1:
|
||||
if not args:
|
||||
parser.error("No application module specified.")
|
||||
|
||||
self.cfg.set("default_proc_name", args[0])
|
||||
|
||||
@ -51,7 +51,7 @@ try:
|
||||
setproctitle("gunicorn: %s" % title)
|
||||
except ImportError:
|
||||
def _setproctitle(title):
|
||||
return
|
||||
pass
|
||||
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user