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)
Note: See
TracTickets for help on using
tickets.
(In [10234]) Fixed #8836 remove annoying error messages in log file if no any tcf data defined