]> git.notmuchmail.org Git - notmuch/commit
python: Bulletproof Database() path parameter
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 16 Jun 2011 13:51:13 +0000 (15:51 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 16 Jun 2011 13:51:13 +0000 (15:51 +0200)
commit995303c21bb5012b7eeaa1fe5fd15ae175bfa1e6
tree124e3f15c6c77543b3556bb26f08b5fb8f156664
parent0817f0e168c8212200fc6624aeaac77318a9bc35
python: Bulletproof Database() path parameter

libnotmuch (and python) crashed when I accidently passed in an invalid
value as path argument to the Database() instantiation.

Therefore, we now check via assert that the handed in path is actually a
real string (or None).

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/database.py