from psdi.server import MXServer
import sys
try:
mbo.getMboValue("FOOBAR")
except:
print "an error was encountered"
e = sys.exc_info()[0]
print(e)
The expected behavior is that a message will be written to the log file, but that an SR will be created, and that's exactly the behavior I observed. Here's what was in the log file:
[6/12/20 9:25:50:961 EDT] 000021c4 SystemOut O 12 Jun 2020 09:25:50:961 [DEBUG] [MAXIMO] [] an error was encountered
<type 'psdi.util.MXApplicationException'>
Happy scripting!
No comments:
Post a Comment