diff --git a/app/Ui/chat/chat.py b/app/Ui/chat/chat.py index 6bb6a01..5b5ef22 100644 --- a/app/Ui/chat/chat.py +++ b/app/Ui/chat/chat.py @@ -278,7 +278,11 @@ class ChatController(QWidget, Ui_Form): print('emoji:', imgPath) if not imgPath: return False - image = Image.open(imgPath) + try: + image = Image.open(imgPath) + except Exception as e: + print(e) + return imagePixmap = image.size # 宽高像素 # 设置最大宽度 if imagePixmap[0] < 150: diff --git a/readme.md b/readme.md index df4dbf6..7e6deb7 100644 --- a/readme.md +++ b/readme.md @@ -5,6 +5,9 @@ + + Issues + @@ -101,4 +104,6 @@ python main.py --- -> 说明:该项目仅可用于交流学习,禁止任何非法用途,本人不承担任何责任🙄 \ No newline at end of file +> 说明:该项目仅可用于交流学习,禁止任何非法用途,本人不承担任何责任🙄 + +[![Star History Chart](https://api.star-history.com/svg?repos=LC044/WeChatMsg&type=Date)](https://star-history.com/?utm_source=bestxtools.com#LC044/WeChatMsg&Date) \ No newline at end of file