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.
This commit is contained in:
TropiiDev 2025-01-15 21:37:31 -05:00
parent ecacfaf64f
commit cf52cdd61f

View File

@ -126,13 +126,13 @@ Options:
if job is None: if job is None:
print("You do not have a job at the moment") print("You do not have a job at the moment")
time.sleep(3) 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"
print(f"Job Title: {job_details.title}\n" f"Pay Per Hour: {job_details.pph}")
f"Education Requirement: {job_details.education}\n" time.sleep(3)
f"Pay Per Hour: {job_details.pph}")
time.sleep(3)
# end job # end job
# begin bank # begin bank
elif option == "bank": elif option == "bank":