Made OPTIONS optional

This commit is contained in:
Egor Margineanu 2020-03-19 13:43:06 +01:00
parent e0633c9122
commit f858eda6b1

View File

@ -77,7 +77,7 @@ def pg_bus_conn():
user=conf['USER'],
password=conf['PASSWORD'],
port=conf['PORT'],
**conf["OPTIONS"])
**conf.get("OPTIONS", {}))
# Django connection.cursor().connection doesn't have autocommit=True on
conn.set_session(autocommit=True)
pubsub = PubSub(conn)