diff --git a/trytond/protocols/dispatcher.py b/trytond/protocols/dispatcher.py index e69699a7ce..cf7acc91a4 100644 --- a/trytond/protocols/dispatcher.py +++ b/trytond/protocols/dispatcher.py @@ -78,8 +78,6 @@ def dispatch(host, port, protocol, database_name, user, session, object_type, elif method == 'db_exist': try: database = Database(*args, **kwargs).connect() - cursor = database.cursor() - cursor.close(close=True) return True except Exception: return False