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:
parent
ecacfaf64f
commit
cf52cdd61f
12
accounts.py
12
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":
|
||||
|
Loading…
Reference in New Issue
Block a user