소스 검색

Add DeviceAlreadyAttached exception

Marek Marczykowski-Górecki 7 년 전
부모
커밋
3edbc85282
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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'''