Przeglądaj źródła

Fixed problem #1373 a unicode decode error caused by utf-8 characters in the platform

xray7224 12 lat temu
rodzic
commit
b87038e8a4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      celery/apps/worker.py

+ 1 - 1
celery/apps/worker.py

@@ -203,7 +203,7 @@ class Worker(WorkController):
             version=VERSION_BANNER,
             version=VERSION_BANNER,
             conninfo=self.app.connection().as_uri(),
             conninfo=self.app.connection().as_uri(),
             concurrency=concurrency,
             concurrency=concurrency,
-            platform=_platform.platform(),
+            platform=safe_str(_platform.platform()),
             events=events,
             events=events,
             queues=app.amqp.queues.format(indent=0, indent_first=False),
             queues=app.amqp.queues.format(indent=0, indent_first=False),
         ).splitlines()
         ).splitlines()