Explorar o código

argparse: Handled wrong exception

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
998018227b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/bin/celeryd_detach.py

+ 1 - 1
celery/bin/celeryd_detach.py

@@ -100,7 +100,7 @@ class detached_celeryd(object):
         config = list(self._extract_command_line_config(argv))
         try:
             argv = argv[:argv.index('--')]
-        except IndexError:
+        except ValueError:
             pass
         return config, argv