GabeGiro / EasyApplyJobsBot

Automated bot that applies to Linkedin jobs via Easy Apply based on your preferences
https://discord.gg/y9fC2snanK
MIT License
20 stars 6 forks source link

Fix "Unhandled exception in startApplying: name 'jobPage' is not defined" #53

Closed GabeGiro closed 3 months ago

GabeGiro commented 3 months ago
2024-08-27 17:33:00 ❌ Error ❌ Unhandled exception in startApplying: name 'jobPage' is not defined
2024-08-27 17:33:00 Traceback (most recent call last):
2024-08-27 17:33:00   File "/app/EasyApplyJobsBot/linkedin.py", line 105, in startApplying
2024-08-27 17:33:00     jobCounter = self.processJob(jobID=job.linkedinJobId, jobCounter=jobCounter)
2024-08-27 17:33:00                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-27 17:33:00   File "/app/EasyApplyJobsBot/linkedin.py", line 154, in processJob
2024-08-27 17:33:00     jobCounter = self.handleJobPost(
2024-08-27 17:33:00                  ^^^^^^^^^^^^^^^^^^^
2024-08-27 17:33:00   File "/app/EasyApplyJobsBot/linkedin.py", line 253, in handleJobPost
2024-08-27 17:33:00     jobCounter = self.handleMultiplePages(jobPage, jobProperties, jobCounter)
2024-08-27 17:33:00                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-27 17:33:00   File "/app/EasyApplyJobsBot/linkedin.py", line 468, in handleMultiplePages
2024-08-27 17:33:00     jobCounter = self.cannotApply(jobProperties, jobCounter)
2024-08-27 17:33:00                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-27 17:33:00   File "/app/EasyApplyJobsBot/linkedin.py", line 476, in cannotApply
2024-08-27 17:33:00     lineToWrite = self.getLogTextForJobProperties(jobProperties, jobCounter) + " | " + "* 🥵 Couldn't apply to this job! Extra info needed. Link: " + str(jobPage)
2024-08-27 17:33:00                                                                                                                                                           ^^^^^^^
2024-08-27 17:33:00 NameError: name 'jobPage' is not defined