Ticket #8836 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

remove annoying error messages in log file if no any tcf data defined

Reported by: uray Assigned to: richard
Priority: low Component: TracTicketChainedFieldsPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11

Description

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 = []

Attachments

Change History

05/27/11 03:36:32 changed by richard

  • status changed from new to closed.
  • resolution set to fixed.

(In [10234]) Fixed #8836 remove annoying error messages in log file if no any tcf data defined


Add/Change #8836 (remove annoying error messages in log file if no any tcf data defined)




Change Properties
Action