"outsourcing" exception-handling to a decorator
"outsourcing" exception-handling to a decorator Question: Many try/except/finally-clauses not only “uglify” my code, but i find myself often using identical exception-handling for similar tasks. So i was considering reducing redundancy by “outsourcing” them to a … decorator. Because i was sure not to be the 1st one to come to this conclusion, I googled and …