Skip to content

Commit

Permalink
Merge pull request #3 from shipyardapp/blakeburch/dm-error-fix
Browse files Browse the repository at this point in the history
Fix CLI error message for DMs
  • Loading branch information
blakeburch authored Nov 4, 2020
2 parents eec7597 + e8eee90 commit 07ca691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slack_blueprints/send_slack_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_args():
args = parser.parse_args()
if args.destination_type == 'channel' and not args.channel_name:
parser.error('--destination-type channel requires --channel-name')
elif args.destination_type == 'dm' and args.users_to_notify:
elif args.destination_type == 'dm' and not args.users_to_notify:
parser.error('--destination-type dm requires --users-to-notify')

if args.users_to_notify and not args.user_lookup_method:
Expand Down

0 comments on commit 07ca691

Please sign in to comment.