def main(): global L1Aresult global L5Aresult global total global limit global trigger global check x=0 while True: try: L1A = pymysql.connect(host="10.