Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve error handling #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

improve error handling #44

wants to merge 1 commit into from

Conversation

doomedraven
Copy link
Contributor

deofuscated_xlm = XLMMacroDeobf(**xlm_kwargs)

File "/usr/local/lib/python3.6/dist-packages/XLMMacroDeobfuscator/deobfuscator.py", line 1748, in process_file
excel_doc = XLSWrapper2(file_path)
File "/usr/local/lib/python3.6/dist-packages/XLMMacroDeobfuscator/xls_wrapper_2.py", line 15, in init
self.xls_workbook = xlrd2.open_workbook(xls_doc_path, formatting_info=True)
File "/usr/local/lib/python3.6/dist-packages/xlrd2/init.py", line 167, in open_workbook
ignore_workbook_corruption=ignore_workbook_corruption,
File "/usr/local/lib/python3.6/dist-packages/xlrd2/book.py", line 90, in open_workbook_xls
ignore_workbook_corruption=ignore_workbook_corruption
File "/usr/local/lib/python3.6/dist-packages/xlrd2/book.py", line 663, in biff2_8_load
raise XLRDError("Can't find workbook in OLE2 compound document")
xlrd2.biffh.XLRDError: Can't find workbook in OLE2 compound document

    deofuscated_xlm = XLMMacroDeobf(**xlm_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/XLMMacroDeobfuscator/deobfuscator.py", line 1748, in process_file
    excel_doc = XLSWrapper2(file_path)
  File "/usr/local/lib/python3.6/dist-packages/XLMMacroDeobfuscator/xls_wrapper_2.py", line 15, in __init__
    self.xls_workbook = xlrd2.open_workbook(xls_doc_path, formatting_info=True)
  File "/usr/local/lib/python3.6/dist-packages/xlrd2/__init__.py", line 167, in open_workbook
    ignore_workbook_corruption=ignore_workbook_corruption,
  File "/usr/local/lib/python3.6/dist-packages/xlrd2/book.py", line 90, in open_workbook_xls
    ignore_workbook_corruption=ignore_workbook_corruption
  File "/usr/local/lib/python3.6/dist-packages/xlrd2/book.py", line 663, in biff2_8_load
    raise XLRDError("Can't find workbook in OLE2 compound document")
xlrd2.biffh.XLRDError: Can't find workbook in OLE2 compound document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant