Skip to content

fix TypeError: 'float' object cannot be interpreted as an integer#10

Open
SamsonHyacinth wants to merge 1 commit intoMisterDaneel:masterfrom
SamsonHyacinth:improve_process_torrent
Open

fix TypeError: 'float' object cannot be interpreted as an integer#10
SamsonHyacinth wants to merge 1 commit intoMisterDaneel:masterfrom
SamsonHyacinth:improve_process_torrent

Conversation

@SamsonHyacinth
Copy link
Copy Markdown

Encountering a TypeError causes the script to fail, as the randint function does not accept float values as parameters. This issue may only occur with certain torrents, as I had previously used the script without encountering this problem. To address it, the min_up and max_up values are now explicitly cast to integers before being passed to randint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant