diff --git a/pyinfra/queue/queue_manager.py b/pyinfra/queue/queue_manager.py index 3589998..6780ab2 100644 --- a/pyinfra/queue/queue_manager.py +++ b/pyinfra/queue/queue_manager.py @@ -61,7 +61,7 @@ class QueueManager(object): token_file_path = token_file_name() with token_file_path.open(mode="w", encoding="utf8") as token_file: - text = token_value is not None if token_value else "" + text = token_value if token_value is not None else "" token_file.write(text) def _open_channel(self):