From d09458faf5ffcd45471e6e9e6c580d1ad4abf2e1 Mon Sep 17 00:00:00 2001 From: Piotr Bartman Date: Tue, 19 Mar 2024 13:48:23 +0100 Subject: [PATCH] make pylint happy --- qui/tray/devices.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qui/tray/devices.py b/qui/tray/devices.py index 0c54866a..ae560872 100644 --- a/qui/tray/devices.py +++ b/qui/tray/devices.py @@ -140,7 +140,8 @@ def update_dev_attachments(self): for vm in self.qapp.domains: try: - for device in vm.devices[self.device.devclass].get_attached_devices(): + devclass = self.device.devclass + for device in vm.devices[devclass].get_attached_devices(): if str(device) == self.device.dev_name: self.device.attachments.add(vm.name) except qubesadmin.exc.QubesDaemonAccessError: @@ -320,7 +321,8 @@ def initialize_dev_data(self): for domain in self.qapp.domains: for devclass in DEV_TYPES: try: - for device in domain.devices[devclass].get_attached_devices(): + for device in domain.devices[ + devclass].get_attached_devices(): dev = str(device) if dev in self.devices: # occassionally ghost UnknownDevices appear when a