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>
This commit is contained in:
parent
5eae909293
commit
57e999a4ae
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
c3 = np.left_shift(raw_data[1::2, 1::2].astype(np.int64), shift)
|
||||||
Img.channels = [c0, c1, c2, c3]
|
Img.channels = [c0, c1, c2, c3]
|
||||||
|
|
||||||
except:
|
except Exception:
|
||||||
print("\nERROR: failed to load DNG file", im_str)
|
print("\nERROR: failed to load DNG file", im_str)
|
||||||
print("Either file does not exist or is incompatible")
|
print("Either file does not exist or is incompatible")
|
||||||
Cam.log += '\nERROR: DNG file does not exist or is incompatible'
|
Cam.log += '\nERROR: DNG file does not exist or is incompatible'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue