def handle_file(self, filepath): try: process_file(filepath) except AIRBLK207NotFound, exc: print exc pass
def handle_dir(self, path): paths = glob(join(path, "*.*")) for path in paths: process_file(path)