diff --git a/book/cookbook/grading.py b/book/cookbook/grading.py
index a4c16360d38ae02c082c7103503958ceba948d7a..247b55e57b43874baf00c721ddae9ba8bc5cdfe9 100644
--- a/book/cookbook/grading.py
+++ b/book/cookbook/grading.py
@@ -7,7 +7,10 @@ def check(f):
 		button = widgets.Button(description="Check answer")
 		@output.capture(clear_output=True,wait=True)
 		def _inner_check(button):
-			f(*args, **kwargs)
+			try:	
+				f(*args, **kwargs)
+			except:
+				print("Something went wrong, have you filled all the functions and run the cells?")
 		button.on_click(_inner_check)
 		display(button, output)
-	return wrapper
\ No newline at end of file
+	return wrapper