Skip to content

Commit

Permalink
Update processing to fix bug, infinite loop on said bug, and unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Jun 16, 2024
1 parent 8ab114c commit 12594ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/fi.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def xOpen(self, name, flags):
class myvfsfile(apsw.VFSFile):

def __init__(self, parent, filename, flags):
filename.parameters
hasattr(filename, "parameters") and filename.parameters
super().__init__(parent, filename, flags)

vfsinstance = myvfs()
Expand Down Expand Up @@ -694,8 +694,6 @@ def get_progress(self):
return curline_pretty, 100 * pos / total_lines

def verify_exception(self, tested):
if len(tested) == 0 and len(self.exc_happened) >= 0:
return
ok = any(e[0] in self.expect_exception for e in self.exc_happened) or any(self.FAULTS in str(e[1])
for e in self.exc_happened)
# these faults happen in fault handling so can't fault report themselves.
Expand Down Expand Up @@ -742,7 +740,6 @@ def run(self):

self.last_key = None
use_runplan = False
last = set(), set()
complete = False

sys.excepthook = sys.unraisablehook = self.exchook
Expand Down

0 comments on commit 12594ee

Please sign in to comment.