Skip to content

Commit

Permalink
make flake8 happy, and don't even bother trying to capture from the d…
Browse files Browse the repository at this point in the history
…evice_changed_to event hook.
  • Loading branch information
dajt1725 authored Apr 26, 2024
1 parent c5d3c48 commit 04f2888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udiskie/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04f2888

Please sign in to comment.