aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2015-01-06 11:51:14 +1100
committermorefigs <morefigs@gmail.com>2015-01-06 11:51:14 +1100
commit41f51f5a05fb1ce80a2c97f68653fa8660ae420b (patch)
tree98549c4873a8ae98193cc209c7d45e071a2f7418
parent9b7a5641edba4a044e4508068f200a6157c22a0d (diff)
downloadpymba-41f51f5a05fb1ce80a2c97f68653fa8660ae420b.tar.gz
pymba-41f51f5a05fb1ce80a2c97f68653fa8660ae420b.zip
Ignored errorCode of -9
Ignored errorCode of -9 when initially checking for cameras as this was always the return value. This is probably not the ideal fix but I can't test code changes at the moment.
-rw-r--r--pymba/vimba.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pymba/vimba.py b/pymba/vimba.py
index ffb3a91..e301aa2 100644
--- a/pymba/vimba.py
+++ b/pymba/vimba.py
@@ -90,7 +90,7 @@ class Vimba(object):
0,
byref(numFound),
sizeof(dummyCameraInfo))
- if errorCode != 0:
+ if errorCode != 0 and errorCode != -9:
print errorCode
raise VimbaException(errorCode)