Small ScreenCaptureKit fixes

This commit is contained in:
AuroraWright
2024-12-21 04:06:45 +01:00
parent 975bd0ace9
commit d9cf93f636
2 changed files with 5 additions and 3 deletions

View File

@@ -614,7 +614,7 @@ class OCRSpace:
res = res.json()
if type(res) == str:
if isinstance(res, str):
return (False, 'Unknown error!')
if res['IsErroredOnProcessing']:
return (False, res['ErrorMessage'])