diff options
| author | morefigs <morefigs@gmail.com> | 2016-05-16 12:25:30 +1000 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2016-05-16 12:25:30 +1000 |
| commit | 02efe9142ebeb5cb693e23da10ea517994b7191e (patch) | |
| tree | bf1705e90a484ab027afdc645c72acb916e44ef6 | |
| parent | 8c31976d0c77f830462fec8c86d5070a040aa06b (diff) | |
| download | pymba-02efe9142ebeb5cb693e23da10ea517994b7191e.tar.gz pymba-02efe9142ebeb5cb693e23da10ea517994b7191e.zip | |
used warning instead of print statement
| -rw-r--r-- | pymba/vimbaframe.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pymba/vimbaframe.py b/pymba/vimbaframe.py index fdd0d49..e955030 100644 --- a/pymba/vimbaframe.py +++ b/pymba/vimbaframe.py @@ -4,10 +4,11 @@ from vimbaexception import VimbaException from vimbadll import VimbaDLL from vimbadll import VimbaC_MemoryBlock from ctypes import * +import warnings try: import numpy as np except ImportError: - print('warning: numpy not found, some VimbaFrame methods will not be available') + warnings.warn('numpy not found, some VimbaFrame methods will not be available') """ |
