Make pylint happy

This commit is contained in:
Marek Marczykowski-Górecki 2021-04-05 16:29:35 +02:00
parent d155787e7c
commit 1afd46da6b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 6 additions and 4 deletions

View File

@ -168,6 +168,7 @@ class TemplateModel(PyQt5.QtCore.QAbstractItemModel):
return index == PyQt5.QtCore.QModelIndex()
def data(self, index, role=PyQt5.QtCore.Qt.DisplayRole):
# pylint: disable=too-many-return-statements
if index.isValid():
data = self.children[index.row()][index.column()]
if role == PyQt5.QtCore.Qt.DisplayRole:

View File

@ -631,9 +631,10 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
QtWidgets.QMessageBox.warning(
self,
self.tr("Warning!"),
self.tr("Connecting a TemplateVM directly to a network is highly"
" discouraged! <br> <small>You are breaking a basic par"
"t of Qubes security and there is probably no real need"
self.tr(
"Connecting a TemplateVM directly to a network is highly"
" discouraged! <br> <small>You are breaking a basic part "
"of Qubes security and there is probably no real need"
" to do so. Continue at your own risk.</small>"))
def check_warn_dispvmnetvm(self):