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: