Skip to content

Commit

Permalink
Wrap pyplot in an exception block
Browse files Browse the repository at this point in the history
  • Loading branch information
aia committed Mar 30, 2021
1 parent 4f47a4f commit 7556cef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gamestonk_terminal/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

def inputhook(inputhook_context):
while not inputhook_context.input_is_ready():
pyplot.pause(0.1)
try:
pyplot.pause(0.1)
# pylint: disable=unused-variable
except Exception as e:
continue
return False


Expand Down

0 comments on commit 7556cef

Please sign in to comment.