From patchwork Tue May 12 00:03:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3774 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D596560E15 for ; Tue, 12 May 2020 02:03:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cFHFHeF8"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5FF6533E; Tue, 12 May 2020 02:03:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589241826; bh=RdKMXsoLJMcRm00J7FudYwK1oT0RjHwUVLVsWcySA00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cFHFHeF88FOE2qtgfF+rxPRFSqEIX4vGdpLwIu+CPZVhTuHxbdH9kyZnMXy0k1v6m z5uZhSED0fZkN0lHn4P+x5fpPwTDqWQWuf6h8bJzSM10CC3pg0o9pJ/xbNa+X6tkBo MF8WTtgCmZ7RNhC39mN1vVO5qIxjFUXpELaTXork= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 03:03:18 +0300 Message-Id: <20200512000322.11753-21-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> References: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 20/24] utils: raspberrypi: ctt: Fix pycodestyle E722 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 00:03:47 -0000 E722 do not use bare 'except' Signed-off-by: Laurent Pinchart --- utils/raspberrypi/ctt/ctt_image_load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'