mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Move newline format
CURA-4863
This commit is contained in:
parent
d351eba758
commit
f1363fab73
2 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||||
except Exception as e:
|
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.
|
# 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 <filename> or <message>!", "Failed to import profile from <filename>{0}</filename>: <message>{1}</message>", file_name, str(e))}
|
return { "status": "error", "message": catalog.i18nc("@info:status Don't translate the XML tags <filename> or <message>!", "Failed to import profile from <filename>{0}</filename>: <message>{1}</message>", file_name, "\n" + str(e))}
|
||||||
|
|
||||||
if profile_or_list:
|
if profile_or_list:
|
||||||
# Ensure it is always a list of profiles
|
# Ensure it is always a list of profiles
|
||||||
|
|
|
@ -76,7 +76,7 @@ class LegacyProfileReader(ProfileReader):
|
||||||
multi_extrusion = global_container_stack.getProperty("machine_extruder_count", "value") > 1
|
multi_extrusion = global_container_stack.getProperty("machine_extruder_count", "value") > 1
|
||||||
if multi_extrusion:
|
if multi_extrusion:
|
||||||
Logger.log("e", "Unable to import legacy profile %s. Multi extrusion is not supported", file_name)
|
Logger.log("e", "Unable to import legacy profile %s. Multi extrusion is not supported", file_name)
|
||||||
raise Exception("\nUnable to import legacy profile. Multi extrusion is not supported")
|
raise Exception("Unable to import legacy profile. Multi extrusion is not supported")
|
||||||
|
|
||||||
Logger.log("i", "Importing legacy profile from file " + file_name + ".")
|
Logger.log("i", "Importing legacy profile from file " + file_name + ".")
|
||||||
container_registry = ContainerRegistry.getInstance()
|
container_registry = ContainerRegistry.getInstance()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue