webhook: Fix f-string str-bytes-safe error.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-19 11:07:44 -04:00 committed by Tim Abbott
parent da326aedff
commit aa733f0bbd
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ approach shown above.
options["url"], json, content_type="application/json", HTTP_HOST=realm.host options["url"], json, content_type="application/json", HTTP_HOST=realm.host
) )
if result.status_code != 200: if result.status_code != 200:
raise CommandError(f"Error status {result.status_code}: {result.content}") raise CommandError(f"Error status {result.status_code}: {result.content!r}")
def _does_fixture_path_exist(self, fixture_path: str) -> bool: def _does_fixture_path_exist(self, fixture_path: str) -> bool:
return os.path.exists(fixture_path) return os.path.exists(fixture_path)