浏览代码

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'''