Skip to content

Commit

Permalink
Merge pull request #2 from arunelias/master
Browse files Browse the repository at this point in the history
Fix for FileNotFoundError when mercurial or git is not installed
  • Loading branch information
meeb authored Oct 14, 2022
2 parents 33bf47f + 7c3befb commit 4b16047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_cachekiller/templatetags/cdnstaticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self):
def _run_cmd(self, cmd):
try:
return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, FileNotFoundError):
return None

def _strip_ref(self, ref):
Expand Down

0 comments on commit 4b16047

Please sign in to comment.