Ver código fonte

fix: IntegrityError import wrong (#1868)

takatost 1 ano atrás
pai
commit
3b668c0bb1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api/core/provider_manager.py

+ 1 - 1
api/core/provider_manager.py

@@ -3,7 +3,7 @@ from collections import defaultdict
 from json import JSONDecodeError
 from typing import Optional
 
-from psycopg2 import IntegrityError
+from sqlalchemy.exc import IntegrityError
 
 from core.entities.model_entities import DefaultModelEntity, DefaultModelProviderEntity
 from core.entities.provider_configuration import ProviderConfigurations, ProviderConfiguration, ProviderModelBundle