Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1110: Print NameError to reduce confusion
[csit.git]
/
resources
/
tools
/
presentation
/
generator_plots.py
diff --git
a/resources/tools/presentation/generator_plots.py
b/resources/tools/presentation/generator_plots.py
index
6faf4c3
..
d89d68f
100644
(file)
--- a/
resources/tools/presentation/generator_plots.py
+++ b/
resources/tools/presentation/generator_plots.py
@@
-39,9
+39,9
@@
def generate_plots(spec, data):
try:
logging.info(" Plot nr {0}:".format(index + 1))
eval(plot["algorithm"])(plot, data)
try:
logging.info(" Plot nr {0}:".format(index + 1))
eval(plot["algorithm"])(plot, data)
- except NameError:
- logging.error("
The algorithm '{0}' is not defined.
".
- format(
plot["algorithm"]
))
+ except NameError
as err
:
+ logging.error("
Probably algorithm '{alg}' is not defined: {err}
".
+ format(
alg=plot["algorithm"], err=repr(err
))
logging.info("Done.")
logging.info("Done.")