Skip to content

Commit

Permalink
remove unnecessary str() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
M4hbod authored and tempookian committed Apr 20, 2023
1 parent f8ceb62 commit 14fc8ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/cfscanner/args/testconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def from_args(cls, args: argparse.Namespace):
raise TemplateReadError(
"permission denied while reading template file")
except Exception as e:
raise TemplateReadError(f"error while reading template file: {str(e)}")
raise TemplateReadError(f"error while reading template file: {e}")

# speed related config
test_config.startprocess_timeout = args.startprocess_timeout
Expand Down
4 changes: 2 additions & 2 deletions python/cfscanner/xray/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def download_binary(
return bin_path
except FileDownloadError as e:
raise BinaryDownloadError(
f"Failed to download the release zip file from xtls xray-core github repo {str(system_info)}")
f"Failed to download the release zip file from xtls xray-core github repo {system_info}")
except KeyError as e:
raise BinaryDownloadError(
f"Failed to get binary from zip file {zip_url}")
except Exception as e:
raise BinaryDownloadError(
f"Unknown error - detected system: {str(system_info)}")
f"Unknown error - detected system: {system_info}")
else:
console.log(f"[bright_blue]Binary file already exists {bin_path}[/bright_blue]")
return bin_path
Expand Down

0 comments on commit 14fc8ae

Please sign in to comment.