mirror of
https://github.com/mskatoni/ni-mail.git
synced 2026-09-07 08:26:47 +08:00
feat: complete ni-mail rewrite with Graph API, IMAP, OTP extractor, Web UI and Docker deployment
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
def get_response_details(response: requests.Response) -> Any:
|
||||
try:
|
||||
return response.json()
|
||||
except Exception:
|
||||
return response.text or response.reason
|
||||
Reference in New Issue
Block a user