mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:39:01 +08:00
Minor fixes
CURA-4868
This commit is contained in:
parent
b5856d6577
commit
507b967946
@ -3,7 +3,7 @@
|
||||
|
||||
import copy
|
||||
import os.path
|
||||
import urllib
|
||||
import urllib.parse
|
||||
import uuid
|
||||
from typing import Any, Dict, List, Union
|
||||
|
||||
|
@ -52,10 +52,10 @@ class CuraProfileReader(ProfileReader):
|
||||
parser = configparser.ConfigParser(interpolation=None)
|
||||
parser.read_string(serialized)
|
||||
|
||||
if not "general" in parser:
|
||||
if "general" not in parser:
|
||||
Logger.log("w", "Missing required section 'general'.")
|
||||
return []
|
||||
if not "version" in parser["general"]:
|
||||
if "version" not in parser["general"]:
|
||||
Logger.log("w", "Missing required 'version' property")
|
||||
return []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user