Fixed an issue on len(Exception)

Replaced len(e) with len(e.args)