Browse Source

Preload options change caused problems

Ask Solem 11 years ago
parent
commit
1f10228b6b
1 changed files with 1 additions and 1 deletions
  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]