GithubHelp home page GithubHelp logo

jeopyrdy's Introduction

jeopyrdy's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

jeopyrdy's Issues

Catch error when wikipedia can't find page for a particular query

Application crashes when a search for a page that does not exist on Wikipedia is made.

Test game: 860

Traceback (most recent call last):
  File "main.py", line 174, in <module>
    if __name__ == "__main__": main()
  File "main.py", line 70, in main
    setup_ret = util.lib_setup()
  File "/Users/jeremy/Documents/git/JeoPyrdy/src/util.py", line 235, in lib_setup
    parsed_data = parse_jarchive()
  File "/Users/jeremy/Documents/git/JeoPyrdy/src/util.py", line 201, in parse_jarchive
    if res[i] == '404': res[i] = get_img_from_wiki(resp[i], i)
  File "/Users/jeremy/Documents/git/JeoPyrdy/src/util.py", line 70, in get_img_from_wiki
    page = wikipedia.page(query)
  File "/Users/jeremy/Library/Python/2.7/lib/python/site-packages/wikipedia/wikipedia.py", line 276, in page
    return WikipediaPage(title, redirect=redirect, preload=preload)
  File "/Users/jeremy/Library/Python/2.7/lib/python/site-packages/wikipedia/wikipedia.py", line 299, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "/Users/jeremy/Library/Python/2.7/lib/python/site-packages/wikipedia/wikipedia.py", line 345, in __load
    raise PageError(self.title)
wikipedia.exceptions.PageError: Page id "bowlion" does not match any pages. Try another id!

Upgrade project to python 3

Python 2 support ended in January 2020, so if any real progress is to be made on this project, it should be upgraded to Python 3

Add Raspberry Pi support

I think this project would springboard if Raspberry Pi support were added. What would be involved? Mostly the USB drivers?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.