We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ef9b7 commit 3a39895Copy full SHA for 3a39895
ggshield/core/errors.py
@@ -14,7 +14,7 @@
14
from pygitguardian.models import Detail, TokenScope
15
16
from ggshield.core.text_utils import pluralize
17
-from ggshield.utils.git_shell import GitError, InvalidGitRefError
+from ggshield.utils.git_shell import InvalidGitRefError
18
19
20
logger = logging.getLogger(__name__)
@@ -193,7 +193,7 @@ def handle_exception(exc: Exception) -> int:
193
" To workaround that, try setting the PYTHONUTF8 environment variable to 1."
194
)
195
196
- if not isinstance(exc, (click.ClickException, GitError)):
+ if not isinstance(exc, click.ClickException):
197
click.echo()
198
if ui.is_verbose():
199
traceback.print_exc()
0 commit comments