Update GetGpt provider for Debian python3-pycryptodome compatibility

Try to import AES from Cryptodome.Cipher if Crypto.Cipher caused error.
This commit is contained in:
razrab 2023-10-24 19:30:57 +03:00
parent 8eab96d319
commit 87f8007345
1 changed files with 4 additions and 1 deletions

View File

@ -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