Browse Source

handle error better

rdb 13 years ago
parent
commit
07e3f33fd2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/directscripts/extract_docs.py

+ 1 - 0
direct/src/directscripts/extract_docs.py

@@ -129,6 +129,7 @@ def processType(handle, type):
             classtype = "union"
             classtype = "union"
         else:
         else:
             print "I don't know what type %s is" % typename
             print "I don't know what type %s is" % typename
+            return
         
         
         if len(derivations) > 0:
         if len(derivations) > 0:
             print >>handle, "%s %s : public %s {" % (classtype, typename, ", public ".join(derivations))
             print >>handle, "%s %s : public %s {" % (classtype, typename, ", public ".join(derivations))