Skip to content

Commit 3c51d4d

Browse files
committed
Add missing method fail to coursedir.py
1 parent e31f68f commit 3c51d4d

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

@@ -315,3 +316,7 @@ def get_existing_timestamp(self, dest_path: str) -> Optional[datetime.datetime]:
315316
"Invalid timestamp string: {}".format(timestamp_path))
316317
else:
317318
return None
319+
320+
def fail(self, msg, *args):
321+
self.log.error(msg, *args)
322+
sys.exit(1)

0 commit comments

Comments
 (0)