Skip to content

Commit

Permalink
Silence the "no path" warning when printing help
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 23, 2019
1 parent 833df40 commit 0928967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyter_manim/__init__.py
Expand Up @@ -142,7 +142,10 @@ def catch_path_and_forward(lines):

return video(relative_path, **video_settings)
else:
warn('Could not find path in the manim output')
just_show_help = '-h' in user_args or '--help' in user_args

if not just_show_help:
warn('Could not find path in the manim output')

# If we were silent, some errors could have been silenced too.
if silent:
Expand Down

0 comments on commit 0928967

Please sign in to comment.