Update GetGpt provider for Debian python3-pycryptodome compatibility

Try to import AES from Cryptodome.Cipher if Crypto.Cipher caused error.
pull/1146/head
razrab 8 months ago
parent 8eab96d319
commit 87f8007345

@ -5,7 +5,10 @@ import os
import uuid
import requests
from Crypto.Cipher import AES
try:
from Crypto.Cipher import AES
except ImportError:
from Cryptodome.Cipher import AES
from ...typing import Any, CreateResult
from ..base_provider import BaseProvider

Loading…
Cancel
Save