diff --git a/aws_advanced_python_wrapper/plugin_service.py b/aws_advanced_python_wrapper/plugin_service.py index f3dc5fbc..1fe04db9 100644 --- a/aws_advanced_python_wrapper/plugin_service.py +++ b/aws_advanced_python_wrapper/plugin_service.py @@ -703,8 +703,7 @@ def is_plugin_in_use(self, plugin_class: Type[Plugin]) -> bool: def release_resources(self): try: - if self.current_connection is not None and not self.driver_dialect.is_closed( - self.current_connection): + if self.current_connection is not None: self.current_connection.close() except Exception: # ignore