Skip to content

Commit

Permalink
feat: print ocr exception
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Oct 10, 2023
1 parent 6b7afd8 commit 0a420f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/ocr/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def instance_ocr(self):
logger.debug(_("开始初始化OCR..."))
self.ocr = GetOcrApi(self.exePath)
logger.debug(_("初始化OCR完成"))
except:
logger.error(_("初始化OCR失败"))
except Exception as e:
logger.error(_("初始化OCR失败:{e}").format(e=e))
self.ocr = None
import cpufeature
if not cpufeature.CPUFeature["AVX2"]:
Expand Down

0 comments on commit 0a420f7

Please sign in to comment.