Explorar el Código

argparse: Handled wrong exception

Ask Solem hace 9 años
padre
commit
998018227b
Se han modificado 1 ficheros con 1 adiciones y 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