Browse Source

argparse: Handled wrong exception

Ask Solem 8 years ago
parent
commit
998018227b
1 changed files with 1 additions and 1 deletions
  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