Change all except: clause to except Exception as e: for further revise.
Attach a file by drag & drop or click to upload