If the conversion failed, a ValueError will be raised.
But I found the following try-except statements in players/weapons/__init__.py:
Syntax: Select all
index = index_from_inthandle(handle)
except (ValueError, OverflowError):
Looking at C++ code, there's no explicit OverflowError, too. Only ValueError.
Question is, where does OverflowError come from? Should I always be ready to catch it?