Modify

Opened 13 years ago

Closed 13 years ago

#8836 closed enhancement (fixed)

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

Reported by: uray Owned by: Richard Liao
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 (0)

Change History (1)

comment:1 Changed 13 years ago by Richard Liao

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Richard Liao.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.