-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix black #2493
fix black #2493
Conversation
@@ -699,7 +705,9 @@ | |||
conn.commit() | |||
cursor.close() | |||
except Exception as e: | |||
logger.warning(f"MySQL语句执行报错,语句:{sql},错误信息{traceback.format_exc()}") | |||
logger.warning( | |||
f"MySQL语句执行报错,语句:{sql},错误信息{traceback.format_exc()}" |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (password)
@@ -171,7 +175,9 @@ | |||
if r_json["errcode"] == 0: | |||
logger.debug(f"钉钉推送成功\n通知对象:{userid_list}\n消息内容:{content}") | |||
else: | |||
logger.error(f"钉钉推送失败\n请求连接:{send_url}\n请求参数:{data}\n请求响应:{r_json}") | |||
logger.error( | |||
f"钉钉推送失败\n请求连接:{send_url}\n请求参数:{data}\n请求响应:{r_json}" |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
This expression logs
sensitive data (secret)
@@ -191,7 +197,9 @@ | |||
if r_json["errcode"] == 0: | |||
logger.debug(f"企业微信推送成功\n通知对象:{to_user}") | |||
else: | |||
logger.error(f"企业微信推送失败\n请求连接:{send_url}\n请求参数:{data}\n请求响应:{r_json}") | |||
logger.error( | |||
f"企业微信推送失败\n请求连接:{send_url}\n请求参数:{data}\n请求响应:{r_json}" |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
This expression logs
sensitive data (secret)
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2493 +/- ##
=======================================
Coverage 76.97% 76.97%
=======================================
Files 115 115
Lines 15945 15945
=======================================
Hits 12274 12274
Misses 3671 3671 ☔ View full report in Codecov by Sentry. |
@hhyo 有空帮忙 merge 下, 都只是样式修改, 和逻辑不相关 |
black 更新之后多了些规则, 批量优化一下