remove unused try/except