Skip to content

Commit 7758fc8

Browse files
normal-wlshanshuaikang
authored andcommitted
minor: flake8 fix
1 parent 367c257 commit 7758fc8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

bk-plugin-framework/bk_plugin_framework/kit/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def schedule_context(self) -> dict:
8484
def plugin_callback_info(self) -> typing.Optional[PluginCallbackModel]:
8585
return getattr(self.data, "plugin_callback_info", None)
8686

87+
8788
class PluginMeta(type):
8889
def __new__(cls, name, bases, dct):
8990
# ensure initialization is only performed for subclasses of Plugin

bk-plugin-framework/bk_plugin_framework/runtime/callbacker.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def _check_response_with_result(json_response: dict):
2020
return False
2121
return True
2222

23-
2423
def callback(self, *args, **kwargs):
2524
try:
2625
logger.info(f"[plugin callback]: url={self.callback_url}, data={self.callback_data}")
@@ -40,4 +39,7 @@ def callback_with_retry(self, retry_times=3, *args, **kwargs):
4039
logger.exception(f"[plugin callback with retry] callback {i+1} times failed: {e}")
4140
else:
4241
return
43-
logger.error(f"[plugin callback with retry] retry {retry_times} times failed with {self.callback_url} and {self.callback_data}")
42+
logger.error(
43+
f"[plugin callback with retry] retry {retry_times} times "
44+
f"failed with {self.callback_url} and {self.callback_data}"
45+
)

0 commit comments

Comments
 (0)