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
886cdb1e
Commit
886cdb1e
authored
Nov 17, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error=sys.exc_info() -> exc_info=True *SIGH*
parent
ca12da8d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+1
-1
lib/python/Products/BTreeFolder2/BTreeFolder2.py
lib/python/Products/BTreeFolder2/BTreeFolder2.py
+2
-2
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+1
-1
lib/python/Products/Sessions/SessionDataManager.py
lib/python/Products/Sessions/SessionDataManager.py
+1
-1
lib/python/Products/Transience/Transience.py
lib/python/Products/Transience/Transience.py
+3
-3
No files found.
lib/python/OFS/ObjectManager.py
View file @
886cdb1e
...
@@ -677,7 +677,7 @@ class ObjectManager(
...
@@ -677,7 +677,7 @@ class ObjectManager(
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
except
:
except
:
logger
.
error
(
"Failed to stat file '%s'"
%
k
,
logger
.
error
(
"Failed to stat file '%s'"
%
k
,
e
rror
=
sys
.
exc_info
()
)
e
xc_info
=
True
)
stat
=
None
stat
=
None
if
stat
is
not
None
:
if
stat
is
not
None
:
out
=
out
+
((
k
,
stat
),)
out
=
out
+
((
k
,
stat
),)
...
...
lib/python/Products/BTreeFolder2/BTreeFolder2.py
View file @
886cdb1e
...
@@ -193,7 +193,7 @@ class BTreeFolder2Base (Persistent):
...
@@ -193,7 +193,7 @@ class BTreeFolder2Base (Persistent):
return
1
return
1
except
AssertionError
:
except
AssertionError
:
LOG
.
warn
(
'Detected damage to %s. Fixing now.'
%
path
,
LOG
.
warn
(
'Detected damage to %s. Fixing now.'
%
path
,
e
rror
=
sys
.
exc_info
()
)
e
xc_info
=
True
)
try
:
try
:
self
.
_tree
=
OOBTree
(
self
.
_tree
)
self
.
_tree
=
OOBTree
(
self
.
_tree
)
mt_index
=
OOBTree
()
mt_index
=
OOBTree
()
...
@@ -202,7 +202,7 @@ class BTreeFolder2Base (Persistent):
...
@@ -202,7 +202,7 @@ class BTreeFolder2Base (Persistent):
self
.
_mt_index
=
mt_index
self
.
_mt_index
=
mt_index
except
:
except
:
LOG
.
error
(
'Failed to fix %s.'
%
path
,
LOG
.
error
(
'Failed to fix %s.'
%
path
,
e
rror
=
sys
.
exc_info
()
)
e
xc_info
=
True
)
raise
raise
else
:
else
:
LOG
.
info
(
'Fixed %s.'
%
path
)
LOG
.
info
(
'Fixed %s.'
%
path
)
...
...
lib/python/Products/PythonScripts/PythonScript.py
View file @
886cdb1e
...
@@ -440,7 +440,7 @@ class PythonScript(Script, Historical, Cacheable):
...
@@ -440,7 +440,7 @@ class PythonScript(Script, Historical, Cacheable):
else
:
else
:
self
.
_makeFunction
()
self
.
_makeFunction
()
except
:
except
:
LOG
.
error
(
'write failed'
,
e
rror
=
sys
.
exc_info
()
)
LOG
.
error
(
'write failed'
,
e
xc_info
=
True
)
raise
raise
def
manage_FTPget
(
self
):
def
manage_FTPget
(
self
):
...
...
lib/python/Products/Sessions/SessionDataManager.py
View file @
886cdb1e
...
@@ -284,7 +284,7 @@ class SessionDataManagerTraverser(Persistent):
...
@@ -284,7 +284,7 @@ class SessionDataManagerTraverser(Persistent):
getSessionData
=
sdm
.
getSessionData
getSessionData
=
sdm
.
getSessionData
except
:
except
:
msg
=
'Session automatic traversal failed to get session data'
msg
=
'Session automatic traversal failed to get session data'
logger
.
warn
(
msg
,
e
rror
=
sys
.
exc_info
()
)
logger
.
warn
(
msg
,
e
xc_info
=
True
)
return
return
# set the getSessionData method in the "lazy" namespace
# set the getSessionData method in the "lazy" namespace
...
...
lib/python/Products/Transience/Transience.py
View file @
886cdb1e
...
@@ -801,7 +801,7 @@ class TransientObjectContainer(SimpleItem):
...
@@ -801,7 +801,7 @@ class TransientObjectContainer(SimpleItem):
err
=
'No such onAdd/onDelete method %s referenced via %s'
err
=
'No such onAdd/onDelete method %s referenced via %s'
LOG
.
warning
(
LOG
.
warning
(
err
%
(
callback
,
'/'
.
join
(
path
)),
err
%
(
callback
,
'/'
.
join
(
path
)),
e
rror
=
sys
.
exc_info
()
e
xc_info
=
True
()
)
)
return
return
else
:
else
:
...
@@ -822,7 +822,7 @@ class TransientObjectContainer(SimpleItem):
...
@@ -822,7 +822,7 @@ class TransientObjectContainer(SimpleItem):
LOG
.
warning
(
LOG
.
warning
(
'%s failed when calling %s in %s'
%
(
name
,
callback
,
'%s failed when calling %s in %s'
%
(
name
,
callback
,
'/'
.
join
(
path
)),
'/'
.
join
(
path
)),
e
rror
=
sys
.
exc_info
()
e
xc_info
=
True
()
)
)
finally
:
finally
:
setSecurityManager
(
sm
)
setSecurityManager
(
sm
)
...
@@ -831,7 +831,7 @@ class TransientObjectContainer(SimpleItem):
...
@@ -831,7 +831,7 @@ class TransientObjectContainer(SimpleItem):
path
=
self
.
getPhysicalPath
()
path
=
self
.
getPhysicalPath
()
LOG
.
warning
(
LOG
.
warning
(
err
%
(
name
,
'/'
.
join
(
path
),
callback
),
err
%
(
name
,
'/'
.
join
(
path
),
callback
),
e
rror
=
sys
.
exc_info
()
e
xc_info
=
True
()
)
)
def
getId
(
self
):
def
getId
(
self
):
...
...
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