We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d62d0 commit b359d24Copy full SHA for b359d24
1 file changed
alertaclient/commands/cmd_send.py
@@ -27,7 +27,7 @@ def cli(obj, resource, event, environment, severity, correlate, service, group,
27
client = obj['client']
28
29
# read raw data from file or stdin
30
- if raw_data.startswith('@'):
+ if raw_data and raw_data.startswith('@'):
31
raw_data_file = raw_data.lstrip('@')
32
with open(raw_data_file, 'r') as f:
33
raw_data = f.read()
0 commit comments