mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix typo
This commit is contained in:
parent
5f11713678
commit
4b59fc351f
@ -126,8 +126,8 @@ def load_class(uri, default="sync", section="gunicorn.workers"):
|
|||||||
return pkg_resources.load_entry_point("gunicorn",
|
return pkg_resources.load_entry_point("gunicorn",
|
||||||
section, uri)
|
section, uri)
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
raise RuntimeError("class uri invalid or not found: [%s]",
|
raise RuntimeError("class uri invalid or not found: " +
|
||||||
str(e))
|
"[%s]" % str(e))
|
||||||
klass = components.pop(-1)
|
klass = components.pop(-1)
|
||||||
mod = __import__('.'.join(components))
|
mod = __import__('.'.join(components))
|
||||||
for comp in components[1:]:
|
for comp in components[1:]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user