Modify

Opened 3 years ago

Closed 3 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
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 3 years ago by richard

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.