aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/pal.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-02-12 13:36:34 +0100
committerTibor Frank <tifrank@cisco.com>2018-02-13 08:49:32 +0000
commit3f2294bec19ee8490f0812feefd1b42ba978ee41 (patch)
treec4569f91b6268b1ae02c0e9530f1da2c74cd232b /resources/tools/presentation/pal.py
parent16c2f7b210f709e25c2bf90d998e49969d8b5c3d (diff)
CSIT-891: Add data sources for 1801 report
Change-Id: I320737f2edbf74caa8f12177dcc7186a88920a9a Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 6addc914c636a0dbc1e12a661019cce1715baf77)
Diffstat (limited to 'resources/tools/presentation/pal.py')
-rw-r--r--resources/tools/presentation/pal.py66
1 files changed, 33 insertions, 33 deletions
diff --git a/resources/tools/presentation/pal.py b/resources/tools/presentation/pal.py
index 6d613e339c..4c5de010d4 100644
--- a/resources/tools/presentation/pal.py
+++ b/resources/tools/presentation/pal.py
@@ -83,39 +83,39 @@ def main():
logging.critical("Finished with error.")
sys.exit(1)
- try:
- env = Environment(spec.environment, args.force)
- env.set_environment()
-
- if spec.is_debug:
- if spec.debug["input-format"] == "zip":
- unzip_files(spec)
- else:
- download_data_files(spec)
-
- prepare_static_content(spec)
-
- data = InputData(spec)
- data.read_data()
-
- generate_tables(spec, data)
- generate_plots(spec, data)
- generate_files(spec, data)
- generate_report(args.release, spec)
-
- logging.info("Successfully finished.")
-
- except (KeyError, ValueError, PresentationError) as err:
- logging.info("Finished with an error.")
- logging.critical(str(err))
- except Exception as err:
- logging.info("Finished with an unexpected error.")
- logging.critical(str(err))
-
- finally:
- if spec is not None and not spec.is_debug:
- clean_environment(spec.environment)
- sys.exit(1)
+ # try:
+ env = Environment(spec.environment, args.force)
+ env.set_environment()
+
+ if spec.is_debug:
+ if spec.debug["input-format"] == "zip":
+ unzip_files(spec)
+ else:
+ download_data_files(spec)
+
+ prepare_static_content(spec)
+
+ data = InputData(spec)
+ data.read_data()
+
+ generate_tables(spec, data)
+ generate_plots(spec, data)
+ generate_files(spec, data)
+ generate_report(args.release, spec)
+
+ logging.info("Successfully finished.")
+
+ # except (KeyError, ValueError, PresentationError) as err:
+ # logging.info("Finished with an error.")
+ # logging.critical(str(err))
+ # except Exception as err:
+ # logging.info("Finished with an unexpected error.")
+ # logging.critical(str(err))
+ #
+ # finally:
+ # if spec is not None and not spec.is_debug:
+ # clean_environment(spec.environment)
+ # sys.exit(1)
if __name__ == '__main__':