From c99db7830b9208e8c8aba21fdc7cb6d972b74df3 Mon Sep 17 00:00:00 2001 From: int3l Date: Wed, 16 Sep 2020 23:31:48 +0300 Subject: [PATCH] Make the code argument non optional --- pre_commit/error_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/error_handler.py b/pre_commit/error_handler.py index 36082efe..696e37db 100644 --- a/pre_commit/error_handler.py +++ b/pre_commit/error_handler.py @@ -17,7 +17,7 @@ class FatalError(RuntimeError): def _log_and_exit( msg: str, - code: int = 0, + code: int, exc: BaseException, formatted: str, ) -> None: