We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 171a20f commit d18e5beCopy full SHA for d18e5be
odml/tools/rdf_converter.py
@@ -46,12 +46,13 @@ def __init__(self, odml_documents):
46
subclass_path = os.path.join(dirname(dirname(dirname(abspath(__file__)))),
47
'doc', 'section_subclasses.yaml')
48
49
- with open(subclass_path, "r") as f:
50
- try:
51
- self.section_subclasses = yaml.load(f)
52
- except yaml.parser.ParserError as err:
53
- print(err)
54
- return
+ if os.path.isfile(subclass_path):
+ with open(subclass_path, "r") as f:
+ try:
+ self.section_subclasses = yaml.load(f)
+ except yaml.parser.ParserError as err:
+ print(err)
55
+ return
56
57
def convert_to_rdf(self):
58
self.hub_root = URIRef(odmlns.Hub)
0 commit comments