Skip to content

Commit e9467a4

Browse files
committed
fix(reader_xlsx): add missing import subprocess
`_x_recalc_copy` calls `subprocess.run` twice but the module never imports `subprocess`. Because the whole body is wrapped in `except Exception: return None`, the resulting `NameError` is swallowed silently: whenever LibreOffice (`soffice`) is actually installed, the recalc path raises, returns None, and the workbook is marked "soffice unavailable" — so the formula-recalc feature never works even when it could.
1 parent 1233828 commit e9467a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎plugins/tools/_reader_xlsx.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import os
1616
import re
1717
import shutil
18+
import subprocess
1819
import tempfile
1920
import xml.etree.ElementTree as _ET
2021
import zipfile

0 commit comments

Comments
 (0)