summaryrefslogtreecommitdiff
path: root/silx/io/url.py
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@debian.org>2021-09-07 14:39:36 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2021-09-07 14:39:36 +0200
commitd3194b1a9c4404ba93afac43d97172ab24c57098 (patch)
treea1604130e1401dc1cbd084518ed72869dc92b86f /silx/io/url.py
parentb3bea947efa55d2c0f198b6c6795b3177be27f45 (diff)
New upstream version 0.15.2+dfsg
Diffstat (limited to 'silx/io/url.py')
-rw-r--r--silx/io/url.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/silx/io/url.py b/silx/io/url.py
index 044977c..66b75f0 100644
--- a/silx/io/url.py
+++ b/silx/io/url.py
@@ -344,6 +344,8 @@ class DataUrl(object):
:rtype: bool
"""
file_path = self.file_path()
+ if file_path is None:
+ return False
if len(file_path) > 0:
if file_path[0] == "/":
return True