fixed try/except