mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Put a last line for the warning traceback that's not the string
This commit is contained in:
parent
bb4d46f09c
commit
6eeb280e1b
|
@ -6,7 +6,8 @@ if "twisted.internet.reactor" in sys.modules:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"Something has already installed a Twisted reactor. Attempting to uninstall it; " +
|
"Something has already installed a Twisted reactor. Attempting to uninstall it; " +
|
||||||
"you can fix this warning by importing daphne.server early in your codebase or " +
|
"you can fix this warning by importing daphne.server early in your codebase or " +
|
||||||
"finding the package that imports Twisted and importing it later on."
|
"finding the package that imports Twisted and importing it later on.",
|
||||||
|
UserWarning,
|
||||||
)
|
)
|
||||||
del sys.modules["twisted.internet.reactor"]
|
del sys.modules["twisted.internet.reactor"]
|
||||||
asyncioreactor.install()
|
asyncioreactor.install()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user