From 04f288894e1b262e1cd625ca4b482cd6f13fee0f Mon Sep 17 00:00:00 2001 From: dajt1725 Date: Fri, 26 Apr 2024 17:40:37 -0400 Subject: [PATCH] make flake8 happy, and don't even bother trying to capture from the device_changed_to event hook. --- udiskie/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udiskie/prompt.py b/udiskie/prompt.py index 061a252..367664c 100644 --- a/udiskie/prompt.py +++ b/udiskie/prompt.py @@ -237,7 +237,7 @@ async def __call__(self, device, arg1 = None, arg2 = None): attrs['event'] = 'device_changed_to' argv = [arg.format(**attrs) for arg in self.argv] try: - stdout2 = await exec_subprocess(argv, self.capture) + await exec_subprocess(argv, False) except subprocess.CalledProcessError: return None return stdout