From 8f14ed6c811359ca0188e8085c6d248c390a16fc Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 31 Jan 2018 07:02:01 -0800 Subject: [PATCH] Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper(). Unused since its introduction in 7fca4416c7f7ce66d528f0d1ad829cf3b8290b89. --- django/core/management/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management/utils.py b/django/core/management/utils.py index a4ac6fad58..56438b6455 100644 --- a/django/core/management/utils.py +++ b/django/core/management/utils.py @@ -8,7 +8,7 @@ from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text from .base import CommandError -def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'): +def popen_wrapper(args, stdout_encoding='utf-8'): """ Friendly wrapper around Popen. @@ -17,7 +17,7 @@ def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'): try: p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE, close_fds=os.name != 'nt') except OSError as err: - raise os_err_exc_type('Error executing %s' % args[0]) from err + raise CommandError('Error executing %s' % args[0]) from err output, errors = p.communicate() return ( force_text(output, stdout_encoding, strings_only=True, errors='strict'),