From c4401ff17387de45d6253740a9ec147af5ffa77a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 19 Aug 2020 14:27:03 +0200 Subject: [PATCH] stamina: remove unnessary cmd string case as it was used for sleep debug --- nonstop/management/commands/stamina.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nonstop/management/commands/stamina.py b/nonstop/management/commands/stamina.py index e668445..3c80df0 100644 --- a/nonstop/management/commands/stamina.py +++ b/nonstop/management/commands/stamina.py @@ -195,13 +195,7 @@ class Command(BaseCommand): cmd.append(item.file_path()) logger.info('Play file: %s', item.file_path()) logger.debug('cmd %r', cmd) - if isinstance(cmd, str): - self.player = await asyncio.create_subprocess_shell( - cmd, - stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE) - else: - self.player = await asyncio.create_subprocess_exec( + self.player = await asyncio.create_subprocess_exec( *cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) -- 2.39.2