Skip to content

Commit 1f11f04

Browse files
committed
Fix view error message once again
1 parent fbf294d commit 1f11f04

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

qcportal/qcportal/optimization/record_models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ def to_qcschema_result(self) -> OptimizationResult:
250250
except NoClientError:
251251
raise RuntimeError(
252252
"Record does not contain the required data for a QCSchema result, and this record is "
253-
"not connected to a client. Try include=['**'] and/or fetch_children=True when retrieving this record "
254-
"or creating a dataset view"
253+
"not connected to a client. If fetching records, use include=['**']. "
254+
"If this is from a dataset view, use include=['**'] and include_children=True "
255+
"when creating the view"
255256
)
256257

257258

qcportal/qcportal/singlepoint/record_models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ def to_qcschema_result(self) -> AtomicResult:
263263
)
264264
except NoClientError:
265265
raise RuntimeError(
266-
"Record does not contain the required data for a QCSchema result, and this record is "
267-
"not connected to a client. Try include=['**'] and/or fetch_children=True when retrieving this record "
268-
"or creating a dataset view"
266+
"Record does not contain the required data for a QCSchema result, and this record is "
267+
"not connected to a client. If fetching records, use include=['**']. "
268+
"If this is from a dataset view, use include=['**'] and include_children=True "
269+
"when creating the view"
269270
)
270271

271272

0 commit comments

Comments
 (0)