Skip to content

Commit 1c8a41c

Browse files
tuncbkoseGehock
authored andcommitted
Add missing method fail to coursedir.py
1 parent ef44180 commit 1c8a41c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nbgrader/coursedir.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import re
3+
import sys
34

45
from textwrap import dedent
56

@@ -338,3 +339,7 @@ def get_existing_timestamp(self, dest_path: str) -> Optional[datetime.datetime]:
338339
"Invalid timestamp string: {}".format(timestamp_path))
339340
else:
340341
return None
342+
343+
def fail(self, msg, *args):
344+
self.log.error(msg, *args)
345+
sys.exit(1)

0 commit comments

Comments
 (0)