Explorar o código

이렇게 안해도 될 듯

2DU %!s(int64=9) %!d(string=hai) anos
pai
achega
523628227d
Modificáronse 4 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      app.py
  2. BIN=BIN
      image/0a51cc35b351fd950b09fccced61741f.png
  3. BIN=BIN
      image/asdf.png
  4. 0 0
      image/test.png

+ 1 - 4
app.py

@@ -85,10 +85,7 @@ conn = pymysql.connect(host = data['host'], user = data['user'], password = data
 curs = conn.cursor(pymysql.cursors.DictCursor)
 
 curs.execute("use mysql")
-try:
-    curs.execute("set global wait_timeout = 315360000")
-except:
-    test = 1
+curs.execute("set global wait_timeout = 315360000")
 
 try:
     curs.execute("use " + data['db'])

BIN=BIN
image/0a51cc35b351fd950b09fccced61741f.png


BIN=BIN
image/asdf.png


+ 0 - 0
image/test.png