Skip to content

Commit 31091de

Browse files
authored
fix grammar in error messages (#203)
Space is missing between two sentences.
1 parent 55c324d commit 31091de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dpdispatcher/submission.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ def serialize(self, if_static=False):
127127

128128
def register_task(self, task):
129129
if self.belonging_jobs:
130-
raise RuntimeError("Not allowed to register tasks after generating jobs."
130+
raise RuntimeError("Not allowed to register tasks after generating jobs. "
131131
"submission hash error {self}".format(self=self))
132132
self.belonging_tasks.append(task)
133133

134134
def register_task_list(self, task_list):
135135
if self.belonging_jobs:
136-
raise RuntimeError("Not allowed to register tasks after generating jobs."
136+
raise RuntimeError("Not allowed to register tasks after generating jobs. "
137137
"submission hash error {self}".format(self=self))
138138
self.belonging_tasks.extend(task_list)
139139

@@ -242,8 +242,8 @@ def handle_unexpected_submission_state(self):
242242
f"Meet errors will handle unexpected submission state.\n"
243243
f"Debug information: remote_root=={self.machine.context.remote_root}.\n"
244244
f"Debug information: submission_hash=={self.submission_hash}.\n"
245-
f"Please check the dirs and scripts in remote_root"
246-
f"The job information mentioned above may help"
245+
f"Please check the dirs and scripts in remote_root. "
246+
f"The job information mentioned above may help."
247247
) from e
248248

249249
# not used here, submitting job is in handle_unexpected_submission_state.

0 commit comments

Comments
 (0)