mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
assert -> raise
This commit is contained in:
parent
9f6fcde2f1
commit
76040b53f5
@ -149,7 +149,8 @@ class _FakeTahoeUriHandler(Resource, object):
|
||||
|
||||
:returns: a capability-string
|
||||
"""
|
||||
assert isinstance(data, bytes)
|
||||
if not isinstance(data, bytes):
|
||||
raise TypeError("'data' must be bytes")
|
||||
|
||||
cap = self._generate_capability(kind)
|
||||
if self._data is None:
|
||||
|
Loading…
Reference in New Issue
Block a user