From cf52cdd61fd8f5908bcc853a160d910e8367f9ff Mon Sep 17 00:00:00 2001 From: TropiiDev Date: Wed, 15 Jan 2025 21:37:31 -0500 Subject: [PATCH] Implement a quick fix for a bug There was an issue when the user would view their job in the account manager. If the user didn't have a job the code would continue to look for the user's job and it would fail and cause the program to stop running. --- accounts.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/accounts.py b/accounts.py index a800613..5d91c51 100644 --- a/accounts.py +++ b/accounts.py @@ -126,13 +126,13 @@ Options: if job is None: print("You do not have a job at the moment") time.sleep(3) + else: + job_details = get_job_details(job) - job_details = get_job_details(job) - - print(f"Job Title: {job_details.title}\n" - f"Education Requirement: {job_details.education}\n" - f"Pay Per Hour: {job_details.pph}") - time.sleep(3) + print(f"Job Title: {job_details.title}\n" + f"Education Requirement: {job_details.education}\n" + f"Pay Per Hour: {job_details.pph}") + time.sleep(3) # end job # begin bank elif option == "bank":