Skip to content

Commit a69f3d2

Browse files
Roey Darwish Drorvmalloc
Roey Darwish Dror
authored andcommitted
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 12243e2 commit a69f3d2

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)