diff --git a/django_cachekiller/templatetags/cdnstaticfiles.py b/django_cachekiller/templatetags/cdnstaticfiles.py index e8eab97..e70d7f1 100644 --- a/django_cachekiller/templatetags/cdnstaticfiles.py +++ b/django_cachekiller/templatetags/cdnstaticfiles.py @@ -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):