Extract code from try: except:

Seperate imports onto multiple lines