Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
247d23dc
Commit
247d23dc
authored
Mar 04, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more robust about unpacking errors.
Print repr of description instead of str.
parent
4e36c877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/scripts/fsrefs.py
src/scripts/fsrefs.py
+2
-2
No files found.
src/scripts/fsrefs.py
View file @
247d23dc
...
...
@@ -56,7 +56,7 @@ def report(oid, data, serial, fs, missing):
description
=
"%s.%s"
%
info
else
:
description
=
str
(
info
)
print
"
\
t
oid %s %s: %
s
"
%
(
hex
(
u64
(
oid
)),
reason
,
description
)
print
"
\
t
oid %s %s: %
r
"
%
(
hex
(
u64
(
oid
)),
reason
,
description
)
print
def
main
(
path
):
...
...
@@ -80,7 +80,7 @@ def main(path):
for
info
in
refs
:
try
:
ref
,
klass
=
info
except
TypeError
:
except
(
ValueError
,
TypeError
)
:
# failed to unpack
ref
=
info
klass
=
'<unknown>'
...
...
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