little fix

This commit is contained in:
Federico 2024-08-20 18:12:31 +01:00 committed by GitHub
parent 084fd0251e
commit acc6b44251
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,6 +174,13 @@ class LinkedInEasyApplier:
self._create_and_upload_resume(element)
elif 'cover' in parent.text.lower():
self._create_and_upload_cover_letter(element)
else:
if self.resume_dir != None:
resume_path = self.resume_dir.resolve()
if self.resume_dir != None and resume_path.exists() and resume_path.is_file():
element.send_keys(str(resume_path))
else:
self._create_and_upload_resume(element)
def _create_and_upload_resume(self, element):
max_retries = 3