We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431b612 commit f961b9dCopy full SHA for f961b9d
addons/source-python/packages/source-python/__init__.py
@@ -485,6 +485,15 @@ def flush(self):
485
if sys.stderr is None:
486
sys.stderr = OutputRedirect()
487
488
+ from engines.server import engine_server
489
+
490
+ if not engine_server.is_dedicated_server():
491
+ # Return here for listen servers, because we only want to see the
492
+ # warning if reconnecting the output streams failed, which is only
493
+ # done on dedicated servers. For listen servers creating OutputRedirect
494
+ # instances is the proper fix.
495
+ return
496
497
from warnings import warn
498
warn(
499
'sys.stdout and/or sys.stderr is None. All data will be redirected through '
0 commit comments