From 41f51f5a05fb1ce80a2c97f68653fa8660ae420b Mon Sep 17 00:00:00 2001 From: morefigs Date: Tue, 6 Jan 2015 11:51:14 +1100 Subject: 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. --- pymba/vimba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3