Update config.py to propagate exceptions