devices: fix error reporting

This commit is contained in:
Marek Marczykowski-Górecki 2017-09-02 18:00:27 +02:00
parent cea70748a6
commit 32b57deb3a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -352,8 +352,8 @@ class DeviceCollection(object):
try:
devices = self._vm.fire_event('device-list-attached:' + self._bus,
persistent=persistent)
except Exception as e: # pylint: disable=broad-except
self._vm.log.exception(e, 'Failed to list {} devices'.format(
except Exception: # pylint: disable=broad-except
self._vm.log.exception('Failed to list {} devices'.format(
self._bus))
if persistent is True:
# don't break app.save()