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
3e1a9753
Commit
3e1a9753
authored
Jun 12, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There's no string exceptions anymore
parent
b112d234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/ZPublisher/xmlrpc.py
src/ZPublisher/xmlrpc.py
+5
-7
No files found.
src/ZPublisher/xmlrpc.py
View file @
3e1a9753
...
...
@@ -148,16 +148,15 @@ class Response:
absuri_match
=
None
,
tag_search
=
None
):
# Fetch our exception info. t is type, v is value and tb is the
# traceback object.
if
type
(
info
)
is
type
(())
and
len
(
info
)
==
3
:
t
,
v
,
tb
=
info
else
:
t
,
v
,
tb
=
sys
.
exc_info
()
if
isinstance
(
info
,
tuple
)
and
len
(
info
)
==
3
:
t
,
v
,
tb
=
info
else
:
t
,
v
,
tb
=
sys
.
exc_info
()
# Don't mask 404 respnses, as some XML-RPC libraries rely on the HTTP
# mechanisms for detecting when authentication is required. Fixes Zope
# Collector issue 525.
if
t
==
'Unauthorized'
or
(
isinstance
(
t
,
types
.
ClassType
)
and
issubclass
(
t
,
Unauthorized
)
):
if
issubclass
(
t
,
Unauthorized
):
return
self
.
_real
.
exception
(
fatal
=
fatal
,
info
=
info
)
# Create an appropriate Fault object. Containing error information
...
...
@@ -175,7 +174,6 @@ class Response:
value
=
'
\
n
'
+
''
.
join
(
format_exception
(
t
,
vstr
,
tb
))
else
:
value
=
'%s - %s'
%
(
t
,
vstr
)
if
isinstance
(
v
,
Fault
):
f
=
v
elif
isinstance
(
v
,
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