diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-02 03:32:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-13 17:00:01 +0300 |
commit | 57e999a4aef95a60202ce8e517018d6d1a09b35d (patch) | |
tree | deebdfbb39eb04387cb68d56a2acfab5ef2ffcb7 | |
parent | 5eae9092937043c307acc5190543c7088d8196f1 (diff) |
utils: raspberrypi: ctt: Fix pycodestyle E722
E722 do not use bare 'except'
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
-rw-r--r-- | utils/raspberrypi/ctt/ctt_image_load.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py index 78730750..e373c7c0 100644 --- a/utils/raspberrypi/ctt/ctt_image_load.py +++ b/utils/raspberrypi/ctt/ctt_image_load.py @@ -331,7 +331,7 @@ def dng_load_image(Cam, im_str): c3 = np.left_shift(raw_data[1::2, 1::2].astype(np.int64), shift) Img.channels = [c0, c1, c2, c3] - except: + except Exception: print("\nERROR: failed to load DNG file", im_str) print("Either file does not exist or is incompatible") Cam.log += '\nERROR: DNG file does not exist or is incompatible' |