Rename exception variable in makeAlert
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user