Skip to content

Commit

Permalink
0.07
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Sep 6, 2023
1 parent e1f7a8b commit 8f1ba2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def pre_check(self):
try:
import bilibili_api
return True
except ImportError:
logger.error("plugin:package <bilibili_api> not installed")
except ImportError as e:
logger.error(f"plugin:package <bilibili_api> not installed:{e}")
return False

def func_message(self, message_text):
Expand Down
4 changes: 2 additions & 2 deletions plugins/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def pre_check(self):
from duckduckgo_search import DDGS
from middleware.filter.sublimate import Sublimate
return True
except ImportError:
logger.warning("plugin:package <duckduckgo_search> not found,please install it first")
except ImportError as e:
logger.warning(f"plugin:package <duckduckgo_search> not found,please install it first:{e}")
return False

def func_message(self, message_text):
Expand Down
2 changes: 1 addition & 1 deletion task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def send_task(self, task: TaskHeader):
async with connection:
channel = await connection.channel()
message = Message(
task.json().encode(), delivery_mode=DeliveryMode.PERSISTENT,
task.json().encode("utf-8"), delivery_mode=DeliveryMode.PERSISTENT,
)
await channel.declare_queue(
self.queue_name, durable=True,
Expand Down

0 comments on commit 8f1ba2e

Please sign in to comment.