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
8f99162b
Commit
8f99162b
authored
Dec 16, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed rendering of exceptions that have no args attribute
parent
dbf824f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lib/python/DocumentTemplate/ustr.py
lib/python/DocumentTemplate/ustr.py
+10
-7
No files found.
lib/python/DocumentTemplate/ustr.py
View file @
8f99162b
...
@@ -50,10 +50,13 @@ def ustr(v):
...
@@ -50,10 +50,13 @@ def ustr(v):
return
str
(
v
)
return
str
(
v
)
def
_exception_str
(
self
):
def
_exception_str
(
exc
):
if
not
self
.
args
:
if
hasattr
(
exc
,
'args'
):
return
''
if
not
exc
.
args
:
elif
len
(
self
.
args
)
==
1
:
return
''
return
ustr
(
self
.
args
[
0
])
elif
len
(
exc
.
args
)
==
1
:
else
:
return
ustr
(
exc
.
args
[
0
])
return
str
(
self
.
args
)
else
:
return
str
(
exc
.
args
)
return
str
(
exc
)
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