예제 #1
0
파일: spi.py 프로젝트: rvolgers/Glasgow
 def _check_format(file, kind):
     try:
         autodetect(file)
     except ValueError:
         raise GlasgowAppletError("cannot determine %s file format" % kind)
예제 #2
0
 def _check_format(file, kind):
     try:
         autodetect(file)
     except ValueError:
         raise ProgramAVRError("cannot determine %s file format" % kind)