Skip to content

Commit

Permalink
script safety warning added
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Sep 17, 2024
1 parent 2ab4778 commit 3f7be42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests
colorama
py7zr
py7zr
5 changes: 3 additions & 2 deletions src/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def print_slate_text():
{blue}
'''
print(art)
time.sleep(2)
print("Press Enter to continue...")
input()

def clear_terminal():
os.system('cls' if os.name == 'nt' else 'clear')
Expand Down Expand Up @@ -144,7 +145,7 @@ def load_sources():
data = json.load(file)
return data.get('files', [])
except FileNotFoundError:
print(Fore.RED + Style.BRIGHT + "sources.json file not found in the root directory.")
print(Fore.RED + Style.BRIGHT + "sources.json file not found in the root directory. Ensure the filename is exact.")
return []
except json.JSONDecodeError:
print(Fore.RED + Style.BRIGHT + "Error decoding JSON from sources.json.")
Expand Down

0 comments on commit 3f7be42

Please sign in to comment.