VirusTotal / vt-py

The official Python 3 client library for VirusTotal
https://virustotal.github.io/vt-py/
Apache License 2.0
531 stars 121 forks source link

fix(client): Fix Runtime error when running non async apps #192

Closed mgmacias95 closed 3 months ago

mgmacias95 commented 3 months ago

closes #183

The VT Client expected to be called inside an asyncio coroutine and when it was not (for example, when running non-async wsgi apps) it raised a runtime error exception because there was no event loop. This PR fixes that.