Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur : ValueError: invalid literal for int() with base 10: '' #76

Open
criters59 opened this issue Mar 10, 2021 · 0 comments
Open

Erreur : ValueError: invalid literal for int() with base 10: '' #76

criters59 opened this issue Mar 10, 2021 · 0 comments

Comments

@criters59
Copy link

criters59 commented Mar 10, 2021

Les sous forum ayant les même attribut il n'arrive pas à lire le nombre de posts
Pour corriger l'erreur j'ai changer changer les dernères lignes dans forum.py :


                self.forums[oldid].num_topics = int(row("td").eq(2).text())
                self.forums[oldid].num_posts = int(row("td").eq(3).text())

Par

if row("td").eq(2).text().isdigit():
                self.forums[oldid].num_topics = int(row("td").eq(2).text())
            # Get subforum numbers of topics and posts
            if row("td").eq(3).text().isdigit():
                self.forums[oldid].num_posts = int(row("td").eq(3).text())
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

No branches or pull requests

1 participant