Bugfix in logging when trying to import broken profile. CURA-787

This commit is contained in:
Jack Ha 2016-10-20 11:39:01 +02:00
parent fd50d9e316
commit d4f7a0e16c
37 changed files with 307 additions and 4 deletions

View File

@ -165,7 +165,7 @@ class CuraContainerRegistry(ContainerRegistry):
profile_or_list = profile_reader.read(file_name) # Try to open the file with the profile reader.
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", file_name, str(e), profile_reader.getPluginId())
Logger.log("e", "Failed to import profile from %s: %s while using profile reader [%s]", file_name, str(e), profile_reader.getPluginId())
return { "status": "error", "message": catalog.i18nc("@info:status", "Failed to import profile from <filename>{0}</filename>: <message>{1}</message>", file_name, str(e))}
if profile_or_list: # Success!
name_seed = os.path.splitext(os.path.basename(file_name))[0]

View File

@ -31,5 +31,13 @@ Generic ABS profile. Serves as an example file, data in this file is not correct
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Generic CPE profile. Serves as an example file, data in this file is not correct
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -22,10 +22,16 @@ Generic Nylon profile. Serves as an example file, data in this file is not corre
<setting key="heated bed temperature">60</setting>
<setting key="standby temperature">175</setting>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2+"/>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2 Extended+"/>
<setting key="hardware compatible">yes</setting>
<hotend id="0.25 mm" />
<hotend id="0.4 mm" />

View File

@ -47,5 +47,13 @@ Generic PLA profile. Serves as an example file, data in this file is not correct
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,12 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,12 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,12 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated ABS profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -31,5 +31,13 @@ Automatically generated CPE profile. Data in this file may not be not correct.
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -11,7 +11,7 @@ Generic Nylon profile. Serves as an example file, data in this file is not corre
</name>
<GUID>c64c2dbe-5691-4363-a7d9-66b2dc12837f</GUID>
<version>1</version>
<color_code>#000000</color_code>
<color_code>#27292b</color_code>
</metadata>
<properties>
<density>1.14</density>
@ -21,5 +21,23 @@ Generic Nylon profile. Serves as an example file, data in this file is not corre
<setting key="print temperature">250</setting>
<setting key="heated bed temperature">60</setting>
<setting key="standby temperature">175</setting>
<machine>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2+"/>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2 Extended+"/>
<hotend id="0.25 mm" />
<hotend id="0.4 mm" />
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -11,7 +11,7 @@ Generic Nylon profile. Serves as an example file, data in this file is not corre
</name>
<GUID>e256615d-a04e-4f53-b311-114b90560af9</GUID>
<version>1</version>
<color_code>#FFFFFF</color_code>
<color_code>#d0d0d0</color_code>
</metadata>
<properties>
<density>1.14</density>
@ -21,5 +21,23 @@ Generic Nylon profile. Serves as an example file, data in this file is not corre
<setting key="print temperature">250</setting>
<setting key="heated bed temperature">60</setting>
<setting key="standby temperature">175</setting>
<machine>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2+"/>
<machine_identifier manufacturer="Ultimaker" product="Ultimaker 2 Extended+"/>
<hotend id="0.25 mm" />
<hotend id="0.4 mm" />
<hotend id="0.6 mm" />
<hotend id="0.8 mm" />
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>

View File

@ -47,5 +47,13 @@ Automatically generated PLA profile. Data in this file may not be not correct.
<machine_identifier manufacturer="Ultimaker" product="Ultimaker Original"/>
<setting key="standby temperature">150</setting>
</machine>
<machine>
<machine_identifier manufacturer="Ultimaker B.V." product="Ultimaker 3"/>
<hotend id="BB 0.4" />
<hotend id="AA 0.4">
<setting key="hardware compatible">yes</setting>
</hotend>
</machine>
</settings>
</fdmmaterial>