Commit ca84619d authored by Jérome Perrin's avatar Jérome Perrin

zopewsgi: fixes UnboundLocalError: local variable 'warnings' referenced before assignment

91cc6c4e (ERP5Type/Utils: configure warnings in zopewsgi, 2024-02-16)
was bad, on python2 zope did not start.
parent 34c83947
Pipeline #33215 failed with stage
in 0 seconds
...@@ -253,7 +253,6 @@ def runwsgi(): ...@@ -253,7 +253,6 @@ def runwsgi():
from Signals.SignalHandler import SignalHandler from Signals.SignalHandler import SignalHandler
SignalHandler.registerHandler(signal.SIGTERM, sys.exit) SignalHandler.registerHandler(signal.SIGTERM, sys.exit)
else: else:
import warnings
warnings.warn("zope4py3: SignalHandling not implemented!") warnings.warn("zope4py3: SignalHandling not implemented!")
if args.timerserver_interval: if args.timerserver_interval:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment