diff --git a/src/converter.py b/src/converter.py index 0b33d98..169ac41 100644 --- a/src/converter.py +++ b/src/converter.py @@ -179,19 +179,19 @@ class Handler(watchdog.events.PatternMatchingEventHandler): time.sleep(1) timeout += 1 - if timeout > 10: + if timeout > 60: logging.error('Timeout waiting for file {} to exist. Aborting processing.'.format(event.src_path)) return historicalSize = -1 while (historicalSize != os.path.getsize(event.src_path)): - historicalSize = os.path.getsize(event.src_path) logging.info('waiting for copy to finish....') + historicalSize = os.path.getsize(event.src_path) time.sleep(1) - logging.info("file copy has now finished") + + logging.info("file copy has now finished") with open(event.src_path, 'r') as file: - qfx = OfxParser.parse(file, fail_fast=False) statement, acct_name = Handler.get_statement_from_qfx(qfx)