X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=ab3cdec53738ee5e1398e5efea766ebba85e6629;hp=d8413671ad5610938909540076042e602d8eac6e;hb=c1094bc2d767159b5478cd0399d37a4813d0de05;hpb=786f9882e8b408e6ad4c6b7abfef1ac54144be15 diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index d8413671..ab3cdec5 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -351,7 +351,7 @@ class Database(object): """ self._assert_db_is_initialized() # sanity checking if path is valid, and make path absolute - if path[0] == os.sep: + if path and path[0] == os.sep: # we got an absolute path if not path.startswith(self.get_path()): # but its initial components are not equal to the db path