Claude commited on
Commit
60e63b2
·
1 Parent(s): d22eba8

fix: remove dangling except block causing SyntaxError

Browse files
Files changed (1) hide show
  1. smoke_signal_tab.py +1 -6
smoke_signal_tab.py CHANGED
@@ -2306,12 +2306,7 @@ def run_ocr(page_selection: str = "", page_exclusion: str = "", replace_book_que
2306
  "reason_code": "",
2307
  })
2308
 
2309
- except Exception as _book_err:
2310
- import traceback as _tb
2311
- log.append(log_line(f" ✗ {book_id}: UNHANDLED ERROR — {_book_err}"))
2312
- log.append(log_line(_tb.format_exc()))
2313
- finally:
2314
- if doc is not None:
2315
  try:
2316
  doc.close()
2317
  except Exception:
 
2306
  "reason_code": "",
2307
  })
2308
 
2309
+ if doc is not None:
 
 
 
 
 
2310
  try:
2311
  doc.close()
2312
  except Exception: