From 2b3f07ee8c138aa23d901eab40d1de920dd81c71 Mon Sep 17 00:00:00 2001 From: Evangelos Oulis Date: Wed, 22 Jan 2020 15:14:45 +0200 Subject: [PATCH] Update v1.3 --- serverNode/serv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverNode/serv.py b/serverNode/serv.py index f358075..93230b7 100644 --- a/serverNode/serv.py +++ b/serverNode/serv.py @@ -88,7 +88,7 @@ class Parking(Resource): parks = None try: parks = getParkings() - except mysql.connector.errors.DatabaseError as e: + except (mysql.connector.errors.DatabaseError, mysql.connector.errors.InterfaceError) as e: mydb.reconnect(attempts=1, delay=0) return parks, 200