Catch exceptions from python conversions in dbMatch()
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 13 Mar 2009 06:55:53 +0000 (08:55 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 13 Mar 2009 06:55:53 +0000 (08:55 +0200)
commit9317ebc83f611075874713a1099b1f5aa14c969c
treee38024f9351bf7d274d5270d405cd31083790bd7
parentffe2f39adaea9f113a73aea4537a930ba99e49ff
Catch exceptions from python conversions in dbMatch()
- Prior to this, string conversion (eg on unicode object) could fall
  through to rpmtsInitIterator() with key of NULL, matching everything
  and only much later spitting out an obscure traceback. PyInt_FromLong()
  can fail too, causing us to look for bogons.
python/rpmts-py.c