cloudmesh / client

Deprecated: Version 3 of cloudmesh is a light weight cloud client to manage virtual clusters
http://cloudmesh.github.io/client
Other
3 stars 12 forks source link

Exceptions #167

Closed laszewsk closed 8 years ago

laszewsk commented 8 years ago

Evaluate if the as works in python 2 and implement if it does, e.g. replase the Excetion, with Exception as can easily be done in pycharme with replace in path

When you capture exceptions, use the as keyword:

try: ... except MyException as exc: ... This older syntax was removed in Python 3:

try: ... except MyException, exc: # Don't do that! ...

laszewsk commented 8 years ago

Replaced all , with as. Will not work on python 2.6, but thats not important as python 2.6 is no longer supported by python.org