mirror of
https://github.com/norohind/AudioControl.git
synced 2025-04-19 16:27:36 +03:00
Handle events for unknown processes
This commit is contained in:
parent
97d7714d0b
commit
9a49e2750a
@ -226,6 +226,13 @@ class AudioController:
|
||||
return
|
||||
|
||||
else:
|
||||
try:
|
||||
self.get_process(event.PID)
|
||||
|
||||
except KeyError:
|
||||
logger.warning(f'Event for unknown process {event}')
|
||||
return
|
||||
|
||||
if isinstance(event, Events.VolumeIncrement):
|
||||
self.increment_volume(event.PID, event.increment)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user