From 27b1e2cdd622d4251c5bf18f70abc40c56c2cb9a Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Thu, 26 Apr 2018 15:49:18 +0200 Subject: [PATCH] Fix format and add error message to log. Contributes to CURA-5301 --- cura/CuraApplication.py | 2 +- cura/Settings/CuraContainerRegistry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index c1dff4a403..db7a436745 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1354,7 +1354,7 @@ class CuraApplication(QtApplication): try: group_node = Selection.getAllSelectedObjects()[0] except Exception as e: - Logger.log("d", "mergeSelected: Exception:", e) + Logger.log("d", "mergeSelected: Exception: %s", e) return meshes = [node.getMeshData() for node in group_node.getAllChildren() if node.getMeshData()] diff --git a/cura/Settings/CuraContainerRegistry.py b/cura/Settings/CuraContainerRegistry.py index b0ab99ee35..f7153e479f 100644 --- a/cura/Settings/CuraContainerRegistry.py +++ b/cura/Settings/CuraContainerRegistry.py @@ -191,7 +191,7 @@ class CuraContainerRegistry(ContainerRegistry): return { "status": "ok", "message": catalog.i18nc("@info:status Don't translate the XML tags or !", "No custom profile to import in file {0}", file_name)} except Exception as e: # Note that this will fail quickly. That is, if any profile reader throws an exception, it will stop reading. It will only continue reading if the reader returned None. - Logger.log("e", "Failed to import profile from %s: %s while using profile reader. Got exception %s", file_name,profile_reader.getPluginId(), str(e)) + Logger.log("e", "Failed to import profile from %s: %s while using profile reader. Got exception %s", file_name, profile_reader.getPluginId(), str(e)) return { "status": "error", "message": catalog.i18nc("@info:status Don't translate the XML tags or !", "Failed to import profile from {0}: {1}", file_name, "\n" + str(e))} if profile_or_list: