diff --git a/IPython/core/display.py b/IPython/core/display.py index 490435a..2920b84 100644 --- a/IPython/core/display.py +++ b/IPython/core/display.py @@ -1086,7 +1086,7 @@ class Video(DisplayObject): if url is None and isinstance(data, str) and data.startswith(('http:', 'https:')): url = data data = None - elif os.path.exists(data): + elif data is not None and os.path.exists(data): filename = data data = None