diff --git a/CTFd/utils.py b/CTFd/utils.py index 6ec60d5f..bc9067ec 100644 --- a/CTFd/utils.py +++ b/CTFd/utils.py @@ -391,7 +391,7 @@ def can_create_container(): try: output = subprocess.check_output(['docker', 'version']) return True - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, OSError): return False