From 32547397c3528c297a1e39f1fd84eedc00882ed9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Aug 2022 09:07:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- efb_qq_plugin_go_cqhttp/GoCQHttp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/efb_qq_plugin_go_cqhttp/GoCQHttp.py b/efb_qq_plugin_go_cqhttp/GoCQHttp.py index b682c40..ccd19db 100644 --- a/efb_qq_plugin_go_cqhttp/GoCQHttp.py +++ b/efb_qq_plugin_go_cqhttp/GoCQHttp.py @@ -812,12 +812,12 @@ class GoCQHttp(BaseClient): except aiocqhttp.Error as ex: api_ex = CoolQAPIFailureException( "CoolQ HTTP API encountered an error!\nStatus Code:{} Return Code:{}".format( - ex.status_code if hasattr(ex, 'status_code') else "Unknown", - ex.retcode if hasattr(ex, 'retcode') else "Unknown" + ex.status_code if hasattr(ex, "status_code") else "Unknown", + ex.retcode if hasattr(ex, "retcode") else "Unknown", ) ) - api_ex.status_code = ex.status_code if hasattr(ex, 'status_code') else None - api_ex.retcode = ex.retcode if hasattr(ex, 'retcode') else None + api_ex.status_code = ex.status_code if hasattr(ex, "status_code") else None + api_ex.retcode = ex.retcode if hasattr(ex, "retcode") else None raise api_ex else: return res