pass return True pygame.mixer.music.load("../sounds/denied.mp3") pygame.mixer.music.play() time.sleep(2) return False if __name__=="__main__": pygame.init() try: database=employees.load_from_csv('names.csv') while True: line='' while True: ch=sys.stdin.read(1) if ch=='\n': break line+=ch if len(line)==12 and line[0]==';' and line[-1]=='?': try: line=line[1:-1] department=employees.zero_padded_int(line[:2]) id=line[2:-2] issue=employees.zero_padded_int(line[-2:]) authorize(department,id,issue) except Exception as error: sys.stderr.write(str(error)+'\n') except Exception as error: sys.stderr.write(str(error)+'\n') exit(1)
pass return True pygame.mixer.music.load("../sounds/denied.mp3") pygame.mixer.music.play() time.sleep(2) return False if __name__=="__main__": pygame.init() try: database=employees.load_from_csv('names.csv') while True: line='' while True: ch=sys.stdin.read(1) if ch=='\n': break line+=ch if len(line)==12 and line[0]==';' and line[-1]=='?': try: line=line[1:-1] department=employees.zero_padded_int(line[:2]) id=line[2:-2] issue=employees.zero_padded_int(line[-2:]) authorize(department,id,issue) except Exception as error: sys.stderr.write(str(error)+'\n') except Exception as error: sys.stderr.write(str(error)+'\n') exit(1)