9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-06-19 02:55:19 +02:00

Better error message

This commit is contained in:
Anthony Scemama 2024-04-09 12:34:35 +02:00
parent 88cffcb269
commit 43b83ee8e9

View File

@ -802,8 +802,12 @@ if __name__ == "__main__":
pickle_path = os.path.join(QP_ROOT, "config", "qp_create_ninja.pickle")
if arguments["update"]:
try:
with open(pickle_path, 'rb') as handle:
arguments = pickle.load(handle)
except FileNotFoundError:
print("\n-----\nError: Please run 'configure -c config/<config_file>'\n-----\n")
raise
elif arguments["create"]: