Revert last and removed pylint disables
This commit is contained in:
parent
877eeaac2a
commit
3b1057c2e9
@ -967,7 +967,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
||||
# vm could be deleted on renaming
|
||||
try:
|
||||
self.vms_in_table[vm.qid].update()
|
||||
except exc.QubesPropertyAccessError(BaseExeption):
|
||||
except exc.QubesPropertyAccessError:
|
||||
pass
|
||||
|
||||
|
||||
@ -1246,7 +1246,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
||||
|
||||
self.logs_menu.setEnabled(not menu_empty)
|
||||
self.context_menu.exec_(self.table.mapToGlobal(point))
|
||||
except exc.QubesPropertyAccessError(BaseExeption):
|
||||
except exc.QubesPropertyAccessError:
|
||||
pass
|
||||
|
||||
@QtCore.pyqtSlot('QAction *')
|
||||
|
@ -85,7 +85,7 @@ class VmTypeWidget(VmIconWidget):
|
||||
elif self.value == other.value:
|
||||
return self.vm.name < other.vm.name
|
||||
return self.value < other.value
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
def __init__(self, vm, parent=None):
|
||||
@ -135,7 +135,7 @@ class VmLabelWidget(VmIconWidget):
|
||||
elif self.value == other.value:
|
||||
return self.vm.name < other.vm.name
|
||||
return self.value < other.value
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
def __init__(self, vm, parent=None):
|
||||
@ -166,7 +166,7 @@ class VmNameItem(QtGui.QTableWidgetItem):
|
||||
elif other.qid == 0:
|
||||
return False
|
||||
return super(VmNameItem, self).__lt__(other)
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -212,7 +212,7 @@ class VmInfoWidget(QtGui.QWidget):
|
||||
return True
|
||||
elif other.vm.qid == 0:
|
||||
return False
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
self_val = self.upd_info_item.value
|
||||
@ -303,7 +303,7 @@ class VmTemplateItem(QtGui.QTableWidgetItem):
|
||||
elif self.text() == other.text():
|
||||
return self.vm.name < other.vm.name
|
||||
return super(VmTemplateItem, self).__lt__(other)
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -330,7 +330,7 @@ class VmNetvmItem(QtGui.QTableWidgetItem):
|
||||
elif self.text() == other.text():
|
||||
return self.vm.name < other.vm.name
|
||||
return super(VmNetvmItem, self).__lt__(other)
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -354,7 +354,7 @@ class VmInternalItem(QtGui.QTableWidgetItem):
|
||||
elif other.vm.qid == 0:
|
||||
return False
|
||||
return super(VmInternalItem, self).__lt__(other)
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -384,7 +384,7 @@ class VmUpdateInfoWidget(QtGui.QWidget):
|
||||
elif self.value == other.value:
|
||||
return self.vm.name < other.vm.name
|
||||
return self.value < other.value
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
def __init__(self, vm, show_text=True, parent=None):
|
||||
@ -494,7 +494,7 @@ class VmSizeOnDiskItem(QtGui.QTableWidgetItem):
|
||||
elif self.value == other.value:
|
||||
return self.vm.name < other.vm.name
|
||||
return self.value < other.value
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -517,7 +517,7 @@ class VmIPItem(QtGui.QTableWidgetItem):
|
||||
elif other.vm.qid == 0:
|
||||
return False
|
||||
return super(VmIPItem, self).__lt__(other)
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -544,7 +544,7 @@ class VmIncludeInBackupsItem(QtGui.QTableWidgetItem):
|
||||
elif self.vm.include_in_backups == other.vm.include_in_backups:
|
||||
return self.vm.name < other.vm.name
|
||||
return self.vm.include_in_backups < other.vm.include_in_backups
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
||||
|
||||
@ -579,5 +579,5 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
|
||||
elif not other.backup_timestamp:
|
||||
return True
|
||||
return self.backup_timestamp < other.backup_timestamp
|
||||
except exc.QubesPropertyAccessError(BaseException):
|
||||
except exc.QubesPropertyAccessError:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user