Commits

adamv committed 871cd87

Use standard exceptions.

NOTE: the "error" property has been removed.
On earlier versions of Python, "message" may be used to retreive the message.
On newer versions of Python "args[0]" should be used.

  • Participants
  • Parent commits 4efcdaf

Comments (0)

Files changed (1)

File psphere/vim25.py

 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import time
+
 from psphere.soap import VimSoap, ManagedObjectReference
 
+
 class ObjectNotFoundError(Exception):
-    def __init__(self, error):
-        self.error = error
-    def __str__(self):
-        return repr(self.error)
+    pass
 
 class TaskFailed(Exception):
-    def __init__(self, error):
-        self.error = error
-    def __str__(self):
-        return repr(self.error)
+    pass
+
 
 class Vim(object):
     def __init__(self, url, auto_populate=True, debug=False):