Skip to content

Commit b359d24

Browse files
authored
Fix for empty raw-data option (#109)
1 parent d3d62d0 commit b359d24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

alertaclient/commands/cmd_send.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def cli(obj, resource, event, environment, severity, correlate, service, group,
2727
client = obj['client']
2828

2929
# read raw data from file or stdin
30-
if raw_data.startswith('@'):
30+
if raw_data and raw_data.startswith('@'):
3131
raw_data_file = raw_data.lstrip('@')
3232
with open(raw_data_file, 'r') as f:
3333
raw_data = f.read()

0 commit comments

Comments
 (0)