Fixed Gmail and Google Drive preview: items were being sent to the Microsoft Graph API instead of handled correctly.
This commit is contained in:
1 parent
d84e57239a
commit
ce5a5f1cbb
2 files changed
+37
-3
No files matched your search
@@ -304,6 +304,7 @@ def _run_google_scan(options: dict):
|
||||
})
|
||||
try:
|
||||
meta["_account"] = _display_name
|
||||
meta["_source_type"] = "gmail"
|
||||
result = _scan_bytes(data, meta.get("name", "msg.txt"))
|
||||
except Exception as e:
|
||||
broadcast("scan_error", {"file": meta.get("name", ""), "error": str(e)})
|
||||
@@ -376,6 +377,7 @@ def _run_google_scan(options: dict):
|
||||
})
|
||||
try:
|
||||
meta["_account"] = _display_name
|
||||
meta["_source_type"] = "gdrive"
|
||||
result = _scan_bytes(data, meta.get("name", "file"))
|
||||
except Exception as e:
|
||||
broadcast("scan_error", {"file": meta.get("name", ""), "error": str(e)})
|
||||
|
||||
Reference in new issue
Block a user