From 34f5d388651728f7d87230d75d047232521496ee Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 29 Oct 2007 14:02:42 +0000 Subject: print errors when they occur git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3878 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/importscript.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/Server/Reports/importscript.py b/src/lib/Server/Reports/importscript.py index 195df751a..5f1011843 100755 --- a/src/lib/Server/Reports/importscript.py +++ b/src/lib/Server/Reports/importscript.py @@ -212,6 +212,7 @@ if __name__ == '__main__': cursor.execute("INSERT INTO "+tablename+"_interactions VALUES (NULL, %s, %s);", [item_id, current_interaction_id]) except: + print "interactions insert failed" pass for times in statistics.findall('OpStamps'): @@ -227,6 +228,7 @@ if __name__ == '__main__': cursor.execute("INSERT INTO reports_performance_interaction VALUES (NULL, %s, %s);", [item_id, current_interaction_id]) except: + print "perf insert failed" pass if (somewhatverbose or verbose): -- cgit v1.2.3-1-g7c22