Skip to content

Commit

Permalink
Fixed exit error
Browse files Browse the repository at this point in the history
- Fixed error when compiled where if user exits the admin dashboard, error is thrown due to wrong use of exit
  • Loading branch information
tylerlight071 committed Feb 8, 2024
1 parent 24b1b45 commit d4c269a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ cython_debug/
audit_log.txt
config.ini

.vscode/settings.json
3 changes: 2 additions & 1 deletion admin_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import time
import sys
from colorama import Fore, Style
from common_functions import clear_screen, log_action
from user_management import user_management
Expand Down Expand Up @@ -28,7 +29,7 @@ def admin_dashboard():
print("\nLogging out...")
log_action("ADMIN", "Logged Out")
time.sleep(2)
exit()
sys.exit()
else:
print(Fore.RED + "\nInvalid option. Please try again." + Style.RESET_ALL)
time.sleep(2)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ Werkzeug==3.0.1
wheel==0.42.0
whichcraft==0.6.1
zope.event==5.0
zope.interface==6.1
zope.interface==6.1

0 comments on commit d4c269a

Please sign in to comment.