Commit 3c7c0f92 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

ignore common error when power profiling results are empty

parent d38c6b26
...@@ -402,9 +402,11 @@ def worker_powerprof(queueitem=None, nodeid=None, resultfile_path=None, resultfi ...@@ -402,9 +402,11 @@ def worker_powerprof(queueitem=None, nodeid=None, resultfile_path=None, resultfi
resultfile_lock.release() resultfile_lock.release()
os.remove(inputfilename) os.remove(inputfilename)
except ValueError: except ValueError:
msg = "ValueError in powerprof worker process: %s\n" % str(sys.exc_info()[1]) # happens when the results file is empty, e.g. when the user aborts a test -> for now just ignore this error
_errors.append((msg, obsid)) pass
logqueue.put_nowait((loggername, logging.ERROR, msg)) #msg = "ValueError in powerprof worker process: %s\n" % str(sys.exc_info()[1])
#_errors.append((msg, obsid))
#logqueue.put_nowait((loggername, logging.ERROR, msg))
except: except:
msg = "Error in powerprof worker process: %s: %s\n%s" % (str(sys.exc_info()[0]), str(sys.exc_info()[1]), traceback.format_exc()) 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)) _errors.append((msg, obsid))
......
Supports Markdown
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