修改代码扫描问题

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-09-30 10:42:13 +08:00
parent 988941a05d
commit aa8664c334

View File

@ -56,6 +56,7 @@ def check_report_template():
try:
response = request.urlopen(url, timeout=5)
with open(to_path, 'wb') as f:
os.chmod(to_path, 0o600)
f.write(response.read())
except Exception as e:
LOG.error(f"get report template resource error, {e}")