psycopg2 OperationalError trouble | Python/Flask/Psycopg2

hi

I found this thread which may help. my guess was kind of right, the postgres db is closing idle connections older that aroudn 30 minutes.