diff --git a/assistant_ghost.py b/assistant_ghost.py index cbc1fc5..0ee0043 100644 --- a/assistant_ghost.py +++ b/assistant_ghost.py @@ -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" # ---------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------