Skip to content

Commit

Permalink
make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Mar 19, 2024
1 parent 20a4b10 commit d09458f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qui/tray/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d09458f

Please sign in to comment.