[llvm-commits] [zorg] r147537 - /zorg/trunk/lnt/lnt/util/ImportData.py
Daniel Dunbar
daniel at zuster.org
Wed Jan 4 10:33:50 PST 2012
Author: ddunbar
Date: Wed Jan 4 12:33:50 2012
New Revision: 147537
URL: http://llvm.org/viewvc/llvm-project?rev=147537&view=rev
Log:
[lnt/v0.4] lnt.util.ImportData: Fix a crash when no config object is available.
Modified:
zorg/trunk/lnt/lnt/util/ImportData.py
Modified: zorg/trunk/lnt/lnt/util/ImportData.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/util/ImportData.py?rev=147537&r1=147536&r2=147537&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/util/ImportData.py (original)
+++ zorg/trunk/lnt/lnt/util/ImportData.py Wed Jan 4 12:33:50 2012
@@ -102,9 +102,9 @@
# If this database has a shadow import configured, import the run into that
# database as well.
- db_config = config.databases[db_name]
- if db_config.shadow_import:
+ if config and config.databases[db_name].shadow_import:
# Load the shadow database to import into.
+ db_config = config.databases[db_name]
shadow_name = db_config.shadow_import
shadow_db = config.get_database(shadow_name)
if shadow_db is None:
More information about the llvm-commits
mailing list