Skip to content

Unhandled exception occurs if application is resized #23

@JaySmithWpg

Description

@JaySmithWpg

If the application's terminal is resized while it is waiting for players to buzz in, the following exception occurs:

Traceback (most recent call last):
  File "./jeopardy.py", line 306, in <module>
    curses.wrapper(main)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "./jeopardy.py", line 194, in main
    scores, answer_server)
  File "./jeopardy.py", line 129, in run_questions_menu
    answer_server
  File "./jeopardy.py", line 165, in run_question
    answered_questions, player_names, scores)
  File "./jeopardy.py", line 223, in run_buzzin_attempts
    buzzed_in_player_id = wait_4_buzz(players_allowed)
  File "/home/jay/hacker-jeopardy/wait_4_buzz.py", line 23, in wait_4_buzz
    data = s.recv(256)
socket.error: [Errno 4] Interrupted system call

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions