diff options
Diffstat (limited to 'src/python')
-rwxr-xr-x | src/python/botan2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py index a489a4b34..700719496 100755 --- a/src/python/botan2.py +++ b/src/python/botan2.py @@ -78,14 +78,14 @@ def _ctype_bits(s): if isinstance(s, str): return s else: - assert False + raise Exception("Internal error - unexpected type provided to _ctype_bits") else: if isinstance(s, bytes): return s elif isinstance(s, str): return s.encode('utf-8') else: - assert False + raise Exception("Internal error - unexpected type provided to _ctype_bits") def _ctype_bufout(buf): if sys.version_info[0] < 3: |