Skip to content

Commit

Permalink
q-dev: pylint + black
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 24, 2024
1 parent 6dec58d commit 5d49926
Show file tree
Hide file tree
Showing 6 changed files with 842 additions and 607 deletions.
2 changes: 1 addition & 1 deletion qubes/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ def load_device_info(self, devclass) -> VirtualDevice:
_dev.backend_domain].devices[devclass][_dev.port_id]
if isinstance(dev, UnknownDevice):
return _dev
if _dev.device_id != '*' and _dev.device_id != dev.device_id:
if _dev.device_id not in ('*', dev.device_id):
return _dev
return dev
except KeyError:
Expand Down
Loading

0 comments on commit 5d49926

Please sign in to comment.