diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2018-08-10 17:24:37 -0400 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2018-08-10 17:24:37 -0400 |
commit | 1991debfd0b1c30679b00abb56c34a6c4ca588f0 (patch) | |
tree | a5a459c514834376fd194d0e54d6bf3fdd7c66ef | |
parent | 9560124acb541bc806c4dfc78cedee8d8468314f (diff) | |
download | natsort-1991debfd0b1c30679b00abb56c34a6c4ca588f0.tar.gz |
Remove unneeded except block.
Its only purpose was to raise the given error, which is not necessary.
-rw-r--r-- | natsort/utils.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/natsort/utils.py b/natsort/utils.py index 03cb247..fcf99e1 100644 --- a/natsort/utils.py +++ b/natsort/utils.py @@ -660,8 +660,6 @@ def _do_decoding(s, encoding): """ try: return s.decode(encoding) - except UnicodeError: - raise except (AttributeError, TypeError): return s |