mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 19:04:21 +00:00
interfaces.py: ensure that NoSuchChildError can be converted to str even when it is for a non-ASCII name. fixes #1483
This commit is contained in:
parent
c7038d1807
commit
93e50f5e16
@ -1070,6 +1070,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)."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user