Rename exception variable in makeAlert

This commit is contained in:
Veronica Berglyd Olsen
2023-08-13 19:23:03 +02:00
parent 863dcf8b37
commit fd181b18a6
4 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ class ProjectBuilder:
except Exception as exc:
self.mainGui.makeAlert(self.tr(
"Failed to create a new example project."
), level=nwAlert.ERROR, exception=exc)
), level=nwAlert.ERROR, exc=exc)
return False
else:
+2 -2
View File
@@ -376,7 +376,7 @@ class NWProject(QObject):
if not xmlWriter.write(self._data, content, saveTime, editTime):
self.mainGui.makeAlert(self.tr(
"Failed to save project."
), level=nwAlert.ERROR, exception=xmlWriter.error)
), level=nwAlert.ERROR, exc=xmlWriter.error)
return False
# Save other project data
@@ -430,7 +430,7 @@ class NWProject(QObject):
except Exception as exc:
self.mainGui.makeAlert(self.tr(
"Could not create backup folder."
), level=nwAlert.ERROR, exception=exc)
), level=nwAlert.ERROR, exc=exc)
return False
timeStamp = formatTimeStamp(time(), fileSafe=True)