Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
1bf8b3aa
Commit
1bf8b3aa
authored
May 22, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(configd) report traceback, closes
https://github.com/opnsense/core/issues/956
parent
29153230
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
template.py
src/opnsense/service/modules/template.py
+3
-1
No files found.
src/opnsense/service/modules/template.py
View file @
1bf8b3aa
...
@@ -32,6 +32,7 @@ import os
...
@@ -32,6 +32,7 @@ import os
import
os.path
import
os.path
import
syslog
import
syslog
import
collections
import
collections
import
traceback
import
copy
import
copy
import
codecs
import
codecs
import
jinja2
import
jinja2
...
@@ -315,7 +316,8 @@ class Template(object):
...
@@ -315,7 +316,8 @@ class Template(object):
except
Exception
as
render_exception
:
except
Exception
as
render_exception
:
if
wildcard_pos
>
-
1
:
if
wildcard_pos
>
-
1
:
# log failure, but proceed processing when doing a wildcard search
# log failure, but proceed processing when doing a wildcard search
syslog
.
syslog
(
syslog
.
LOG_NOTICE
,
"error generating template
%
s"
%
template_name
)
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'error generating template
%
s :
%
s'
%
(
template_name
,
traceback
.
format_exc
()))
else
:
else
:
raise
render_exception
raise
render_exception
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment