Fixed idaxml working in IDA 9.x

This commit is contained in:
ZERO-A-ONE 2025-08-20 12:10:48 +08:00
parent 542c2aa617
commit f47258c2b2
4 changed files with 20 additions and 27 deletions

View file

@ -30,10 +30,6 @@ import idaxml
import idc
import sys
if sys.version_info.major >= 3:
from idaxml import _exc_info
sys.exc_value = lambda: _exc_info()[1]
sys.exc_type = lambda: _exc_info()[0]
class XmlExporterPlugin(ida_idaapi.plugin_t):
"""
@ -82,7 +78,7 @@ class XmlExporterPlugin(ida_idaapi.plugin_t):
except:
ida_kernwin.hide_wait_box()
msg = "***** Exception occurred: XML Exporter failed! *****"
print("\n" + msg + "\n", sys.exc_type, sys.exc_value)
print(f"\n{msg}\n {type(e).__name__}: {e}")
idc.warning(msg)
finally:
xml.cleanup()