Skip to content

Commit 4b16047

Browse files
authored
Merge pull request #2 from arunelias/master
Fix for FileNotFoundError when mercurial or git is not installed
2 parents 33bf47f + 7c3befb commit 4b16047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

django_cachekiller/templatetags/cdnstaticfiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self):
2424
def _run_cmd(self, cmd):
2525
try:
2626
return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
27-
except subprocess.CalledProcessError:
27+
except (subprocess.CalledProcessError, FileNotFoundError):
2828
return None
2929

3030
def _strip_ref(self, ref):

0 commit comments

Comments
 (0)