Skip to content

Commit e4175b8

Browse files
author
Roey Darwish Dror
committed
Swallow git import exception
See the following issue which explains why we can't catch a specific exception type: gitpython-developers/GitPython#637
1 parent f2384a6 commit e4175b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: backslash/contrib/slash_plugin.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
import logbook
1414
import requests
1515

16-
import git
16+
try:
17+
import git
18+
except Exception as e: # pylint: disable=broad-except
19+
pass
20+
1721
import slash
1822
from sentinels import NOTHING
1923
from slash import config as slash_config

0 commit comments

Comments
 (0)