def _check_format(file, kind): try: autodetect(file) except ValueError: raise GlasgowAppletError("cannot determine %s file format" % kind)
def _check_format(file, kind): try: autodetect(file) except ValueError: raise ProgramAVRError("cannot determine %s file format" % kind)