Commit 4c76537f authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix.

Former-commit-id: 59360da1
Former-commit-id: 8a2e7d99
parent d9dcf8d9
......@@ -137,9 +137,10 @@ class process_controller(object):
def get_AllWrittenProcL_dueLog(path_log): # TODO replace this by database query + os.path.exists
"""Returns all processing level that have been successfully written according to logfile."""
if not os.path.exists(path_log) and path_log != path_logfile_merged_ss:
self.logger.info("No logfile named '%s' found for %s at %s. Dataset has to be reprocessed."
% (os.path.basename(path_log), dataset['entity_ID'], os.path.dirname(path_log)))
if not os.path.exists(path_log):
if path_log == path_logfile: # path_logfile_merged_ss has already been searched
self.logger.info("No logfile named '%s' found for %s at %s. Dataset has to be reprocessed."
% (os.path.basename(path_log), dataset['entity_ID'], os.path.dirname(path_log)))
AllWrittenProcL_dueLog = []
else:
logfile = open(path_log, 'r').read()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment