Explorar o código

Add DeviceAlreadyAttached exception

Marek Marczykowski-Górecki %!s(int64=7) %!d(string=hai) anos
pai
achega
3edbc85282
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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'''