Skip to content

Commit

Permalink
core: better handling NoSectionError in db/sqla/session rucio#641
Browse files Browse the repository at this point in the history
  • Loading branch information
vingar committed Feb 16, 2018
1 parent e82f263 commit d6f4ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rucio/db/sqla/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def get_engine(echo=True):
('pool_reset_on_return', str), ('use_threadlocal', int)]
params = {}
for param, param_type in config_params:
params[param] = param_type(config_get(DATABASE_SECTION,
param,
raise_exception=False,
default=None))
try:
params[param] = param_type(config_get(DATABASE_SECTION, param))
except:
pass
_ENGINE = create_engine(sql_connection, **params)
if 'mysql' in sql_connection:
event.listen(_ENGINE, 'checkout', mysql_ping_listener)
Expand Down

0 comments on commit d6f4ed8

Please sign in to comment.