소스 검색

celery command cannot catch TypeError

Ask Solem 12 년 전
부모
커밋
6f4fbe7532
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):