File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ def uwsgi_handle_fork() -> None:
44
44
logger .debug (
45
45
f"uWSGI --master={ opt_master } --lazy-apps={ opt_lazy_apps } : postfork hooks not applied"
46
46
)
47
+
47
48
except ImportError :
48
49
logger .debug (
49
50
"uwsgi hooks: decorators not available: likely not running under uWSGI"
50
51
)
51
- pass
52
+
53
+ except AttributeError :
54
+ logger .debug ("uwsgi hooks: Running under uWSGI but decorators not available" )
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def determine_service_name() -> str:
135
135
uwsgi_type = "uWSGI worker%s"
136
136
137
137
app_name = uwsgi_type % app_name
138
- except ImportError :
138
+ except ( ImportError , AttributeError ) :
139
139
pass
140
140
except Exception :
141
141
logger .debug ("non-fatal get_application_name: " , exc_info = True )
You can’t perform that action at this time.
0 commit comments