mirror of
https://github.com/norohind/AudioControl.git
synced 2026-10-22 21:32:09 +03:00
Handle events for unknown processes
This commit is contained in:
1 file changed
+7
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user