pass empty url if missing
instead of raising AttributeError Change-Id: I7f7ae280554c585aeca3d92b9d3ec5bea18e4ed0
This commit is contained in:
parent
1f74bbd7b6
commit
52cea05031
|
@ -67,7 +67,7 @@ def get_connection_from_config(conf):
|
|||
)
|
||||
def _inner():
|
||||
url = (conf.database.connection or
|
||||
getattr(conf.database, 'event_connection'))
|
||||
getattr(conf.database, 'event_connection', None))
|
||||
return get_connection(url, conf)
|
||||
|
||||
return _inner()
|
||||
|
|
Loading…
Reference in New Issue