Change address of system exports path

This commit is contained in:
D. Berge
2020-09-10 20:37:52 +02:00
parent 08656a0b5e
commit 3b5b200f08
2 changed files with 6 additions and 6 deletions

View File

@@ -36,9 +36,9 @@ if __name__ == '__main__':
with db.conn.cursor() as cursor: with db.conn.cursor() as cursor:
try: try:
pathPrefix = survey["exports"]["path"] pathPrefix = survey["exports"]["machine"]["path"]
except ValueError: except KeyError:
print("Survey does not define an export path") print("Survey does not define an export path for machine data")
continue continue
for table in exportables: for table in exportables:

View File

@@ -33,9 +33,9 @@ if __name__ == '__main__':
with db.conn.cursor() as cursor: with db.conn.cursor() as cursor:
try: try:
pathPrefix = survey["exports"]["path"] pathPrefix = survey["exports"]["machine"]["path"]
except ValueError: except KeyError:
print("Survey does not define an export path") print("Survey does not define an export path for machine data")
continue continue
for table in exportables: for table in exportables: