I am running quite a large script working through some pds documents using pymupdf, when i encounter an error no error message appear, the scrpt just stops running. When i trace the execution of the script it stops at quite random places. 2 times it stopped on a simple return function that just returns som variables (dicts containing strings and integers). and other times it stopped at:
try:
test = spage.get_text('blocks')
except:
pass
So i dont understand why it stops at different times when i run through it (The exact same documents each time) and most importantly why it stops even though the error is within an try-except clause. and why it doesnt display the error when the error is not within a try-except clause?
I have suspected it might be memory releated since the error happens at different places, but memory seems fine and stable