__init__.py: Error handling for version attribute