- fixed a syntax error in a call of the log.error()

- trying to solve a 'circular reference' error when saving a project in Arch Linux
This commit is contained in:
Marius Stanciu
2022-01-25 00:32:52 +02:00
committed by Marius
parent 4089438392
commit 0c656ab10c
3 changed files with 18 additions and 12 deletions

View File

@@ -11906,7 +11906,6 @@ class MenuFileHandlers(QtCore.QObject):
except Exception as e:
self.log.error("save_project() --> There was no active object. Skipping read_form. %s" % str(e))
# Serialize the whole project
d = {
"objs": [obj.to_dict() for obj in self.app.collection.get_list()],
"options": self.app.options,
@@ -11925,7 +11924,7 @@ class MenuFileHandlers(QtCore.QObject):
out2 = compressor_obj.flush()
project_zipped = b"".join([out1, out2])
except Exception:
self.log.error("Failed to save file: %s", str(filename))
self.log.error("Failed to save file: %s" % str(filename))
self.inform.emit('[ERROR_NOTCL] %s' % _("Failed."))
return