mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:05:53 +08:00
Merge branch '2.3' of https://github.com/Ultimaker/Cura into 2.3
This commit is contained in:
commit
be0e010fd1
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2015 Ultimaker B.V.
|
# Copyright (c) 2016 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the AGPLv3 or higher.
|
# Cura is released under the terms of the AGPLv3 or higher.
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
@ -53,10 +53,10 @@ class CuraProfileReader(ProfileReader):
|
|||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
if not "general" in parser:
|
if not "general" in parser:
|
||||||
Logger.log('w', "Missing required section 'general'.")
|
Logger.log("w", "Missing required section 'general'.")
|
||||||
return None
|
return None
|
||||||
if not "version" in parser["general"]:
|
if not "version" in parser["general"]:
|
||||||
Logger.log('w', "Missing required 'version' property")
|
Logger.log("w", "Missing required 'version' property")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
version = int(parser["general"]["version"])
|
version = int(parser["general"]["version"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user