mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-19 03:42:21 +01:00
Better error message
This commit is contained in:
parent
88cffcb269
commit
43b83ee8e9
@ -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"]:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user