Skip to content
Snippets Groups Projects
Commit 4bf21353 authored by Matthew Jordan's avatar Matthew Jordan
Browse files

ast-db-manage/cdr/env.py: Don't fail if a config file can't be loaded

When generating SQL files via the repotools alembic_creator.py script, a
configuration object is used programatically with SQLAlechemy, as opposed to
a configuration file. This patch ignores failures to interpret a config file,
as ... there isn't one in this case.
........

Merged revisions 414763 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 69125a7a
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,10 @@ config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
fileConfig(config.config_file_name)
try:
fileConfig(config.config_file_name)
except:
pass
# add your model's MetaData object here
# for 'autogenerate' support
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment