def run(self): options = self.options # Load in our file try: map = Map(options['filename']) map.read() self.map = map except LoadException, e: print '"' + options['filename'] + '" could not be opened' print e return False