projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e537d43
)
Sun Aug 14 23:59:59 BST 2011 david-sarah@jacaranda.org
author
Daira Hopwood
<daira@jacaranda.org>
Thu, 5 Sep 2013 17:06:13 +0000
(18:06 +0100)
committer
Daira Hopwood
<daira@jacaranda.org>
Thu, 5 Sep 2013 17:06:13 +0000
(18:06 +0100)
* interfaces.py: ensure that NoSuchChildError can be converted to str even when it is for a non-ASCII name. fixes #1483
src/allmydata/interfaces.py
patch
|
blob
|
history
diff --git
a/src/allmydata/interfaces.py
b/src/allmydata/interfaces.py
index 29ccd27a07d571f755e3bd8127567d99b8e81e36..749be28168cd5bd61c3cafcaf275365fed369627 100644
(file)
--- a/
src/allmydata/interfaces.py
+++ b/
src/allmydata/interfaces.py
@@
-1103,6
+1103,9
@@
class ExistingChildError(Exception):
class NoSuchChildError(Exception):
"""A directory node was asked to fetch a child which does not exist."""
+ def __str__(self):
+ # avoid UnicodeEncodeErrors when converting to str
+ return self.__repr__()
class ChildOfWrongTypeError(Exception):
"""An operation was attempted on a child of the wrong type (file or directory)."""