cli/new_worker: fix the debug_port detection
1 files changed, 1 insertions(+), 1 deletions(-)

M rework/cli.py
M rework/cli.py +1 -1
@@ 126,7 126,7 @@ def unregister_operation(dburi, operatio
 @click.option('--debug-port', type=int, default=0)
 def new_worker(**config):
     " spawn a new worker -- this is a purely *internal* command "
-    if 'debug_port' in config:
+    if config.get('debug_port', 0):
         try:
             import pystuck
         except ImportError: