Commit 4115f49d by mohammed.shibili

updates done

parent 83558508
...@@ -27,5 +27,7 @@ def postgres_connection(): ...@@ -27,5 +27,7 @@ def postgres_connection():
print("connection successful") print("connection successful")
except Exception as e: except Exception as e:
print("connection error", e) print("connection error", e)
else:
connection.set_session(autocommit=True) connection.set_session(autocommit=True)
return connection, cursor return connection, cursor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment