diff --git a/ArtNet/db/db_adapter.py b/ArtNet/db/db_adapter.py index cde9cdc..d60eb17 100644 --- a/ArtNet/db/db_adapter.py +++ b/ArtNet/db/db_adapter.py @@ -11,7 +11,8 @@ class DBAdapter: self.db = None self.db_cursor = None try: - self.db = psycopg2.connect(host=host, port=port, database=database, user=user, password=password) + self.db = psycopg2.connect(host=host, port=port, database=database, user=user, password=password, + connect_timeout=3) self.db_cursor = self.db.cursor() except psycopg2.OperationalError as e: