From 3b5b200f08b0c4085a29ca2735e462c34ee22d22 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Thu, 10 Sep 2020 20:37:52 +0200 Subject: [PATCH] Change address of system exports path --- bin/system_exports.py | 6 +++--- bin/system_imports.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/system_exports.py b/bin/system_exports.py index ff6abed..7598255 100755 --- a/bin/system_exports.py +++ b/bin/system_exports.py @@ -36,9 +36,9 @@ if __name__ == '__main__': with db.conn.cursor() as cursor: try: - pathPrefix = survey["exports"]["path"] - except ValueError: - print("Survey does not define an export path") + pathPrefix = survey["exports"]["machine"]["path"] + except KeyError: + print("Survey does not define an export path for machine data") continue for table in exportables: diff --git a/bin/system_imports.py b/bin/system_imports.py index 0e8761f..0627916 100755 --- a/bin/system_imports.py +++ b/bin/system_imports.py @@ -33,9 +33,9 @@ if __name__ == '__main__': with db.conn.cursor() as cursor: try: - pathPrefix = survey["exports"]["path"] - except ValueError: - print("Survey does not define an export path") + pathPrefix = survey["exports"]["machine"]["path"] + except KeyError: + print("Survey does not define an export path for machine data") continue for table in exportables: