Skip to content

Commit 6455d60

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 6455d60

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:
19+
pass
20+
1721
import slash
1822
from sentinels import NOTHING
1923
from slash import config as slash_config

0 commit comments

Comments
 (0)