Skip to content

Commit 787304a

Browse files
committed
Fix exception when no castxml is found with Python 3
1 parent 54927f8 commit 787304a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygccxml/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def find_xml_generator(name="castxml"):
5353
else:
5454
path = _find_xml_generator_for_legacy_python(name)
5555

56-
if path == "":
56+
if path == "" or path is None:
5757
raise(Exception("No c++ parser found. Please install castxml."))
5858
return path.rstrip(), name
5959

0 commit comments

Comments
 (0)