Explorar el Código

Preload options change caused problems

Ask Solem hace 11 años
padre
commit
1f10228b6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/bin/base.py

+ 1 - 1
celery/bin/base.py

@@ -481,7 +481,7 @@ class Command(object):
                         acc[opt.dest] = value
                 else:
                     opt = opts.get(arg)
-                    if opt.takes_value():
+                    if opt and opt.takes_value():
                         # optparse also supports ['--opt', 'value']
                         # (Issue #1668)
                         acc[opt.dest] = args[index + 1]