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