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

Error message when Importing recipes #1014

Open
wright2me2 opened this issue Nov 6, 2020 · 2 comments · Fixed by kirienko/gourmet#292 · May be fixed by #1022
Open

Error message when Importing recipes #1014

wright2me2 opened this issue Nov 6, 2020 · 2 comments · Fixed by kirienko/gourmet#292 · May be fixed by #1022

Comments

@wright2me2
Copy link

Steps to Reproduce

  1. After successfully importing 270 recipes from Mycookbook.com I am receiving the error that I copied into "describe the bug" below.

Expected Behavior

I keep getting the following error when using Gourmet Recipe:
Traceback (most recent call last):
File "C:\Users\Bernie\Documents\GitHub\gourmet\gourmet\threadManager.py", line 97, in run
File "C:\Users\Bernie\Documents\GitHub\gourmet\gourmet\importers\xml_importer.py", line 70, in do_run
File "C:\Program Files\Python27\lib\xml\sax_init_.py", line 33, in parse
File "C:\Program Files\Python27\lib\xml\sax\expatreader.py", line 107, in parse
File "C:\Program Files\Python27\lib\xml\sax\xmlreader.py", line 123, in parse
File "C:\Program Files\Python27\lib\xml\sax\expatreader.py", line 207, in feed
File "C:\Program Files\Python27\lib\xml\sax\expatreader.py", line 304, in end_element
File "C:\Program Files (x86)\Gourmet Recipe Manager\plugins\import_export\mycookbook_plugin\mycookbook_importer.py", line 110, in endElement obj['rating']=int(self.elbuf.strip()) * 2
ValueError: invalid literal for int() with base 10: 'None'

Current Behavior

Possible Solution

Environment

  • Operating System:
  • Version or commit id:
  • Installed as Flatpak or Python package?:
@cydanil
Copy link
Contributor

cydanil commented Nov 6, 2020

Thanks for reporting the issue! I was able to reproduce it.

It will be fixed in the next release of Gourmet :)

@wright2me2
Copy link
Author

wright2me2 commented Nov 6, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants