Merge pull request #2851 from sudouser777/fix/typo

fixed typo
pull/2877/head
Richard Beales 2023-04-22 06:31:42 +01:00 committed by GitHub
commit f342b84479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def safe_google_results(results: str | list) -> str:
""" """
if isinstance(results, list): if isinstance(results, list):
safe_message = json.dumps( safe_message = json.dumps(
[result.enocde("utf-8", "ignore") for result in results] [result.encode("utf-8", "ignore") for result in results]
) )
else: else:
safe_message = results.encode("utf-8", "ignore").decode("utf-8") safe_message = results.encode("utf-8", "ignore").decode("utf-8")