Commit 8b9ec2c4 authored by Florent Guillaume's avatar Florent Guillaume

More robust.

parent 48885027
...@@ -29,7 +29,10 @@ try: ...@@ -29,7 +29,10 @@ try:
import TextIndex.TextIndex import TextIndex.TextIndex
finally: finally:
del warnings.filters[-1] del warnings.filters[-1]
del __warningregistry__ try:
del __warningregistry__
except NameError:
pass
_indexes = ('TextIndex', _indexes = ('TextIndex',
'KeywordIndex', 'KeywordIndex',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment