﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
8836,remove annoying error messages in log file if no any tcf data defined,uray,richard,"{{{
Index: 0.11/tcf/web_ui.py
===================================================================
--- 0.11/tcf/web_ui.py	(revision 10233)
+++ 0.11/tcf/web_ui.py	(working copy)
@@ -155,7 +155,10 @@
             result[""chained_fields""] = chained_fields
             
             tcf_define = TracTicketChainedFields_List.get_tcf_define(self.env)
-            result[""tcf_define""] = simplejson.loads(tcf_define)
+            try:
+              result[""tcf_define""] = simplejson.loads(tcf_define)
+            except:
+              pass
             
             if req.args.has_key(""warning""):
                 result[""warning""] = ""1""
@@ -172,7 +175,10 @@
                 result[""status""] = ""0""
                 
             tcf_define = TracTicketChainedFields_List.get_tcf_define(self.env)
-            tcf_define_target = simplejson.loads(tcf_define)
+            try:
+              tcf_define_target = simplejson.loads(tcf_define)
+            except:
+              pass
             
             target_field = """"
             target_options = []
}}}",enhancement,closed,low,TracTicketChainedFieldsPlugin,minor,fixed,,,0.11
