mirror of
https://gitee.com/openharmony/testfwk_xdevice
synced 2024-11-27 01:20:53 +00:00
修改代码扫描问题
Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
parent
988941a05d
commit
aa8664c334
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user