To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit 906b0716 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

catch ValueError (e.g. if empty result) separately in powerprof worker

parent 60ae37eb
......@@ -377,6 +377,10 @@ def worker_powerprof(queueitem=None, nodeid=None, resultfile_path=None, resultfi
rld_dataframe.to_csv(resultfile_path, sep=',', index_label='time', header=False, mode='a')
except ValueError:
msg = "ValueError in powerprof worker process: %s" % str(sys.exc_info()[1])
_errors.append((msg, obsid))
logqueue.put_nowait((loggername, logging.ERROR, msg))
msg = "Error in powerprof worker process: %s: %s\n%s" % (str(sys.exc_info()[0]), str(sys.exc_info()[1]), traceback.format_exc())
_errors.append((msg, obsid))
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