Explorar o código

celery command cannot catch TypeError

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

+ 1 - 1
celery/bin/celery.py

@@ -866,7 +866,7 @@ class CeleryCommand(BaseCommand):
         cls = self.commands.get(command) or self.commands['help']
         try:
             return cls(app=self.app).run_from_argv(self.prog_name, argv)
-        except (TypeError, Error):
+        except Error:
             return self.execute('help', argv)
 
     def remove_options_at_beginning(self, argv, index=0):