[libcamera-devel,20/24] utils: raspberrypi: ctt: Fix pycodestyle E722

Message ID 20200512000322.11753-21-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • utils: raspberrypi: ctt: Comply with pycodestyle
Related show

Commit Message

Laurent Pinchart May 12, 2020, 12:03 a.m. UTC
E722 do not use bare 'except'

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 utils/raspberrypi/ctt/ctt_image_load.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py
index 787307508ba5..e373c7c0d2a0 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'