{"id":3774,"url":"https://patchwork.libcamera.org/api/patches/3774/?format=json","web_url":"https://patchwork.libcamera.org/patch/3774/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200512000322.11753-21-laurent.pinchart@ideasonboard.com>","date":"2020-05-12T00:03:18","name":"[libcamera-devel,20/24] utils: raspberrypi: ctt: Fix pycodestyle E722","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"995bdfe7caeab15176432a920fe0b3838b0183d8","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3774/mbox/","series":[{"id":897,"url":"https://patchwork.libcamera.org/api/series/897/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=897","date":"2020-05-12T00:02:58","name":"utils: raspberrypi: ctt: Comply with pycodestyle","version":1,"mbox":"https://patchwork.libcamera.org/series/897/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3774/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3774/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D596560E15\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2020 02:03:46 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 5FF6533E;\n\tTue, 12 May 2020 02:03:46 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"cFHFHeF8\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1589241826;\n\tbh=RdKMXsoLJMcRm00J7FudYwK1oT0RjHwUVLVsWcySA00=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=cFHFHeF88FOE2qtgfF+rxPRFSqEIX4vGdpLwIu+CPZVhTuHxbdH9kyZnMXy0k1v6m\n\tz5uZhSED0fZkN0lHn4P+x5fpPwTDqWQWuf6h8bJzSM10CC3pg0o9pJ/xbNa+X6tkBo\n\tMF8WTtgCmZ7RNhC39mN1vVO5qIxjFUXpELaTXork=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 20/24] utils: raspberrypi: ctt: Fix\n\tpycodestyle E722","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 12 May 2020 00:03:47 -0000"},"content":"E722 do not use bare 'except'\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/raspberrypi/ctt/ctt_image_load.py | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py\nindex 787307508ba5..e373c7c0d2a0 100644\n--- a/utils/raspberrypi/ctt/ctt_image_load.py\n+++ b/utils/raspberrypi/ctt/ctt_image_load.py\n@@ -331,7 +331,7 @@ def dng_load_image(Cam, im_str):\n         c3 = np.left_shift(raw_data[1::2, 1::2].astype(np.int64), shift)\n         Img.channels = [c0, c1, c2, c3]\n \n-    except:\n+    except Exception:\n         print(\"\\nERROR: failed to load DNG file\", im_str)\n         print(\"Either file does not exist or is incompatible\")\n         Cam.log += '\\nERROR: DNG file does not exist or is incompatible'\n","prefixes":["libcamera-devel","20/24"]}