devices: fix error reporting
This commit is contained in:
parent
cea70748a6
commit
32b57deb3a
@ -352,8 +352,8 @@ class DeviceCollection(object):
|
|||||||
try:
|
try:
|
||||||
devices = self._vm.fire_event('device-list-attached:' + self._bus,
|
devices = self._vm.fire_event('device-list-attached:' + self._bus,
|
||||||
persistent=persistent)
|
persistent=persistent)
|
||||||
except Exception as e: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
self._vm.log.exception(e, 'Failed to list {} devices'.format(
|
self._vm.log.exception('Failed to list {} devices'.format(
|
||||||
self._bus))
|
self._bus))
|
||||||
if persistent is True:
|
if persistent is True:
|
||||||
# don't break app.save()
|
# don't break app.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user