diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/color.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py index 3227809303..be8c31bb95 100644 --- a/django/core/management/color.py +++ b/django/core/management/color.py @@ -10,10 +10,10 @@ from django.utils import termcolors try: import colorama -except ImportError: + colorama.init() +except (ImportError, OSError): HAS_COLORAMA = False else: - colorama.init() HAS_COLORAMA = True |
