Skip to content

Commit

Permalink
hotfix for no wikipage
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDemuth authored Feb 15, 2024
1 parent 9752e18 commit 8bcbde8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assistant_ghost.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ def zoom_scale(user_input):
return pyautogui.hotkey('ctrl', '-')

def get_wikipedia(user_input):
try:
result = wikipedia.summary(user_input,1)
return result
except:
return "no wikipage found"
# ----------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 8bcbde8

Please sign in to comment.