2010-09-22, 14:07
The code:
gives me a sytax error at "except WindowsError as e:". My limited understand of Python suggests this code should be legal. If it isn't, how do I get the text message associated with the exception?
Thanks,
JR
Code:
try:
hkey = _winreg.LoadKey(_winreg.HKEY_LOCAL_MACHINE, _ReportMappingTable, filename)
dialog.ok("MCERemote", "Done!", "Please restart Windows to activate the changes.")
except WindowsError as e:
dialog.ok("MCERemote", "Error loading:", filename, e.args)
gives me a sytax error at "except WindowsError as e:". My limited understand of Python suggests this code should be legal. If it isn't, how do I get the text message associated with the exception?
Thanks,
JR