Skip to content

Commit

Permalink
Fixed configure_uwsgi() on py3.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Oct 22, 2017
1 parent 7baac57 commit 2e39afe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uwsgiconf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ def configure_uwsgi(configurator_func):

target_alias = os.environ.get(ENV_CONF_ALIAS)

conf_list = list(registry.values())

if target_alias:
# This call is [presumably] from uWSGI configuration read procedure.
config = registry.get(target_alias)
Expand All @@ -659,6 +661,6 @@ def configure_uwsgi(configurator_func):

# Set module attribute automatically.
config_module = inspect.currentframe().f_back
config_module.f_locals[CONFIGS_MODULE_ATTR] = registry.values()
config_module.f_locals[CONFIGS_MODULE_ATTR] = conf_list

return registry.values()
return conf_list

0 comments on commit 2e39afe

Please sign in to comment.