Minor fixes

CURA-4868
This commit is contained in:
Lipu Fei 2018-01-29 14:46:55 +01:00
parent b5856d6577
commit 507b967946
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
import copy
import os.path
import urllib
import urllib.parse
import uuid
from typing import Any, Dict, List, Union

View file

@ -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 []