From 4467fb3ba24ceb44985b9edab28ded28684d11b3 Mon Sep 17 00:00:00 2001
From: zhoushuaikang <863909694@qq.com>
Date: Fri, 10 Nov 2023 23:31:41 +0800
Subject: [PATCH] update readme
---
app/Ui/chat/chat.py | 6 +++++-
readme.md | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
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 @@
+
+
+
@@ -101,4 +104,6 @@ python main.py
---
-> 说明:该项目仅可用于交流学习,禁止任何非法用途,本人不承担任何责任🙄
\ No newline at end of file
+> 说明:该项目仅可用于交流学习,禁止任何非法用途,本人不承担任何责任🙄
+
+[](https://star-history.com/?utm_source=bestxtools.com#LC044/WeChatMsg&Date)
\ No newline at end of file