From 3d5cabc5eef6f4dd682e7045fe6b4ae309e3e8ab Mon Sep 17 00:00:00 2001 From: sashacmc Date: Thu, 29 Apr 2021 23:44:53 +0200 Subject: [PATCH] Suppres false positive lgtm alert --- photo_importer/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photo_importer/server.py b/photo_importer/server.py index 21f3ac1..a91705c 100755 --- a/photo_importer/server.py +++ b/photo_importer/server.py @@ -266,7 +266,7 @@ class PhotoImporterHandler(http.server.BaseHTTPRequestHandler): cont = 'image/png' else: cont = 'text/none' - with open(fname, 'rb') as f: + with open(fname, 'rb') as f: # lgtm[py/path-injection] self.send_response(200) self.send_header('Content-type', cont) self.end_headers()