From 8d006f2d073b76fe985a8f0a6ae63146f0436daa Mon Sep 17 00:00:00 2001 From: krapes Date: Thu, 16 Jul 2020 16:13:53 -0400 Subject: [PATCH] Feature: Better support for cases where a line for output file exists in config.yaml but does not contain anything --- easyapplybot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyapplybot.py b/easyapplybot.py index d1a35ac..f1a00d0 100644 --- a/easyapplybot.py +++ b/easyapplybot.py @@ -383,7 +383,8 @@ def finish_apply(self): print(parameters) cover_letter_loctn = parameters.get('cover_letter_loctn', [None])[0] - output_filename = parameters.get('output_filename', ['output.csv'])[0] + output_filename = [f for f in parameters.get('output_filename', ['output.csv']) if f != None] + output_filename = output_filename[0] if len(output_filename) > 0 else 'output.csv' blacklist = parameters.get('blacklist', []) bot = EasyApplyBot(parameters['username'],