Migrating to the new exception python syntax

We should use the as syntax it's the future : https://stackoverflow.com/questions/2535760/python-try-except-comma-vs-as-in-except