Skip to content

Commit e464438

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 01157c1 commit e464438

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deepmd/pt/modifier/dp_modifier.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def __init__(
2727
super().__init__(use_cache=use_cache)
2828

2929
if dp_model_file_name is None and dp_model is None:
30-
raise AttributeError("`dp_model_file_name` or `dp_model` should be specified.")
30+
raise AttributeError(
31+
"`dp_model_file_name` or `dp_model` should be specified."
32+
)
3133
if dp_model_file_name is not None and dp_model is not None:
3234
raise AttributeError(
3335
"`dp_model_file_name` and `dp_model` cannot be used simultaneously."

0 commit comments

Comments
 (0)