Skip to content

Commit ab9eda1

Browse files
author
Shakeel Mohamed
committed
Stringify modular input error messages
1 parent 6d19127 commit ab9eda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/modularinput/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def run_script(self, args, event_writer, input_stream):
103103
event_writer._err.write(err_string)
104104

105105
except Exception as e:
106-
err_string = EventWriter.ERROR + e.message
106+
err_string = EventWriter.ERROR + str(e.message)
107107
event_writer._err.write(err_string)
108108
return 1
109109

0 commit comments

Comments
 (0)