Skip to content

Commit

Permalink
Added missing stacklevel warning parameter. (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson authored Apr 14, 2023
1 parent b020416 commit 077dd81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daphne/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
+ "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.",
UserWarning,
stacklevel=2,
)
del sys.modules["twisted.internet.reactor"]
asyncioreactor.install(twisted_loop)
Expand Down

0 comments on commit 077dd81

Please sign in to comment.