Explorar o código

Preload options change caused problems

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
1f10228b6b
Modificáronse 1 ficheiros con 1 adicións e 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]