Forráskód Böngészése

Add DeviceAlreadyAttached exception

Marek Marczykowski-Górecki 7 éve
szülő
commit
3edbc85282
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      qubesadmin/exc.py

+ 5 - 0
qubesadmin/exc.py

@@ -116,6 +116,11 @@ class QubesDaemonCommunicationError(QubesException, IOError):
     permissions, as well'''
 
 
+class DeviceAlreadyAttached(QubesException, KeyError):
+    '''Trying to attach already attached device'''
+    pass
+
+
 # pylint: disable=too-many-ancestors
 class QubesDaemonNoResponseError(QubesDaemonCommunicationError):
     '''Got empty response from qubesd'''