Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c6504916
Commit
c6504916
authored
Sep 14, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use sys.exc_info, if possible.
parent
cbd3d223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+4
-3
No files found.
lib/python/DocumentTemplate/DT_Var.py
View file @
c6504916
...
...
@@ -164,8 +164,8 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.2
3 1998/09/14 22:03:3
3 jim Exp $'
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Var.py,v 1.2
4 1998/09/14 22:08:1
3 jim Exp $'
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
html_quote
,
str
import
regex
,
string
,
sys
,
regex
...
...
@@ -224,7 +224,8 @@ class Var:
elif
fmt
==
''
:
val
=
''
else
:
val
=
fmt
%
val
except
:
t
,
v
=
sys
.
exc_type
,
sys
.
exc_value
t
,
v
=
sys
.
exc_type
,
sys
.
exc_value
if
hasattr
(
sys
,
'exc_info'
):
t
,
v
=
sys
.
exc_info
()[:
2
]
if
val
is
None
or
not
str
(
val
):
return
args
[
'null'
]
raise
t
,
v
...
...
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