Changeset 241

Show
Ignore:
Timestamp:
02/25/08 16:48:01 (5 years ago)
Author:
d0nut
Message:

try/catch for server xml python script

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • make_serverxml.py

    r127 r241  
    2525    def __init__(self, path): 
    2626        "construcor gets path, opens package.xml and extracts the relevant information" 
    27         dom = xml.dom.minidom.parse(path+"/package.xml").documentElement 
     27        try: 
     28            dom = xml.dom.minidom.parse(path+"/package.xml").documentElement 
     29        except: 
     30            print path,"nicht wohlgeformt" 
    2831        self.name = dom.getAttribute("name") 
    2932        self.packageinformation = dom.getElementsByTagName("packageinformation")