From 477935f55461505c73630977fd10b34643afa7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Michel=20De=20Rainville?= Date: Wed, 28 Jan 2015 08:29:24 -0500 Subject: Initialized the error message for clearer output The exception now prints the message to console output: [...] raise VimbaException(errorCode) pymba.vimbaexception.VimbaException: Operation is invalid with the current access mode. --- pymba/vimbaexception.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymba/vimbaexception.py b/pymba/vimbaexception.py index 510479b..87e4a70 100644 --- a/pymba/vimbaexception.py +++ b/pymba/vimbaexception.py @@ -58,3 +58,5 @@ class VimbaException(Exception): self._errorCode = errorCode else: self._errorCode = -1000 + + super(VimbaException, self).__init__(self.message) -- cgit v1.2.3