synodriver / aioqbittorrent

Qbittorrent rpc with asyncio
3 stars 1 forks source link

TypeError: can only join an iterable #1

Open vvaarriiuumm opened 1 day ago

vvaarriiuumm commented 1 day ago

Hey there trying to use this for a project of mine. When I try to use torrents_info function in any way I receive TypeError: can only join an iterable.

line 723 in torrents_info:

hashes = hashes if isinstance(hashes, str) else "|".join(hashes)

synodriver commented 1 day ago

Can you provide an example to reproduce?

vvaarriiuumm commented 1 day ago

Can you provide an example to reproduce?

    async def testcheck(self):
        async with Client(url="my_url", username="my_user", password="my_password") as client:
            await client.auth_login()
            result = await client.torrents_info(filter="all")
            print(result)

It's any time I call the function. I get the same error, doesn't matter what I pass into it.