From 38af6761659d73e700467c4a3bcb315510648dc9 Mon Sep 17 00:00:00 2001 From: Timothy Loftus Date: Thu, 3 Oct 2024 02:28:36 -0500 Subject: [PATCH] Fix Syntax and Type Error Corrected typo to approprate escape character for Windows paths '\\' in Python on lines 182 and 221. Will prevent warning messages. Readded missing '%' for the format string on LIne 1134 --- setup.py | 4 ++-- src/core.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e609763..637c1fc 100755 --- a/setup.py +++ b/setup.py @@ -182,7 +182,7 @@ print("[*] Installation complete. Edit /var/artillery/config in order to config artillery to your liking") #added to start after install.launches in seperate window if is_windows(): - os.chdir("src\windows") + os.chdir("src\\windows") #copy over banlist os.system("start cmd /K banlist.bat") #Wait to make sure banlist is copied over @@ -221,7 +221,7 @@ #remove program files subprocess.call(['cmd', '/C', 'rmdir', '/S', '/Q', 'C:\\Program Files (x86)\\Artillery']) #del uninstall cache - os.chdir("src\windows") + os.chdir("src\\windows") os.system("start cmd /K del_cache.bat") #just so they can see this message slleep a sec print("[*] Artillery has been uninstalled.\n[*] Manually kill the process if it is still running.") diff --git a/src/core.py b/src/core.py index 2ef05e4..b5fef37 100644 --- a/src/core.py +++ b/src/core.py @@ -1131,7 +1131,7 @@ def format_ips(url): write_log(final_msg) if is_posix(): write_log( - "Received URL Error trying to download feed from '%s', Reason: %s" (urls, format(err)),1) + "Received URL Error trying to download feed from '%s', Reason: %s" % (urls, format(err)),1) try: if is_windows():