Skip to content

Commit 366be34

Browse files
add meaninful message for the error (#3024)
1 parent 9535699 commit 366be34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/gesture_recognition_demo/python/gesture_recognition_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def main():
117117
args = build_argparser().parse_args()
118118

119119
class_map = load_class_map(args.class_map)
120-
assert class_map is not None
120+
if class_map is None:
121+
raise RuntimeError("Can't read {}".format(args.class_map))
121122

122123
ie = load_ie_core(args.device, args.cpu_extension)
123124

0 commit comments

Comments
 (0)