Commit fb495a5
Changed files (1)
src
src/database.py
@@ -7,6 +7,7 @@ Note: Memory Cache is always enabled.
import json
import os
+import warnings
from urllib.parse import quote_plus, unquote_plus
from aioboto3 import Session
@@ -21,6 +22,8 @@ from utils import bare_url, stringfy
os.environ["AWS_REQUEST_CHECKSUM_CALCULATION"] = "when_required"
os.environ["AWS_RESPONSE_CHECKSUM_VALIDATION"] = "when_required"
+warnings.filterwarnings("ignore", category=DeprecationWarning)
+
async def get_db(key: str) -> dict:
"""Get KV."""