'gremlin-python - How can I avoid "Unclosed Client Session" when exiting my program?

Problem

I have followed the simple example provided in gremlin-python instructions and did run:

from gremlin_python.process.anonymous_traversal import traversal
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
g = traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))

But then my main closed I get the following error message:

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000134D79FB070>

How can I avoid getting this message?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source