Pycrolis commited on
Commit
efcf2db
·
1 Parent(s): 19b44e9

fix(tool): syntaxError: f-string expression part cannot include a backslash

Browse files
Files changed (1) hide show
  1. tools/wikipedia_search.py +1 -1
tools/wikipedia_search.py CHANGED
@@ -30,7 +30,7 @@ def wikipedia_search(query: str) -> str:
30
  return result_text
31
 
32
  except wikipedia.DisambiguationError as e:
33
- return f"Disambiguation page found. Possible matches:\n{'\n'.join(e.options)}"
34
  except wikipedia.PageError as e:
35
  return f"Page not found. Try another search term."
36
  except Exception as e:
 
30
  return result_text
31
 
32
  except wikipedia.DisambiguationError as e:
33
+ return "Disambiguation page found. Possible matches:\n{}".format('\n'.join(e.options))
34
  except wikipedia.PageError as e:
35
  return f"Page not found. Try another search term."
36
  except Exception as e: