Skip to content

Commit

Permalink
Catch all UnicodeErrors, not just UnicodeDecodeErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
e-pettersen committed Dec 27, 2024
1 parent d192bcf commit 139b296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/viewdockx/src/pdbqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def open_pdbqt(*args):
for encoding in encodings:
try:
return _open_pdbqt(*args, encoding)
except UnicodeDecodeError:
except UnicodeError:
if encoding == encodings[-1]:
raise

Expand Down

0 comments on commit 139b296

Please sign in to comment.