File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,12 @@ <h1 class="title">Module <code>eyecite.tokenizers</code></h1>
556
556
)
557
557
except TypeError:
558
558
hyperscan_db = hyperscan.loadb(cache_bytes)
559
+ except hyperscan.InvalidError:
560
+ # Skipping hyperscan_db assignment to force a full
561
+ # database recompile as the cached version seems to be
562
+ # invalid.
563
+ pass
564
+
559
565
try:
560
566
# at some point Scratch became necessary --
561
567
# https://github.com/darvid/python-hyperscan/issues/50#issuecomment-1386243477
@@ -870,6 +876,12 @@ <h3>Inherited members</h3>
870
876
)
871
877
except TypeError:
872
878
hyperscan_db = hyperscan.loadb(cache_bytes)
879
+ except hyperscan.InvalidError:
880
+ # Skipping hyperscan_db assignment to force a full
881
+ # database recompile as the cached version seems to be
882
+ # invalid.
883
+ pass
884
+
873
885
try:
874
886
# at some point Scratch became necessary --
875
887
# https://github.com/darvid/python-hyperscan/issues/50#issuecomment-1386243477
@@ -969,6 +981,12 @@ <h3>Instance variables</h3>
969
981
)
970
982
except TypeError:
971
983
hyperscan_db = hyperscan.loadb(cache_bytes)
984
+ except hyperscan.InvalidError:
985
+ # Skipping hyperscan_db assignment to force a full
986
+ # database recompile as the cached version seems to be
987
+ # invalid.
988
+ pass
989
+
972
990
try:
973
991
# at some point Scratch became necessary --
974
992
# https://github.com/darvid/python-hyperscan/issues/50#issuecomment-1386243477
You can’t perform that action at this time.
0 commit comments