Skip to content

Commit

Permalink
Check return value of post_tweet_hook and notify the user
Browse files Browse the repository at this point in the history
  • Loading branch information
buckket committed Feb 16, 2016
1 parent 24db805 commit 59c7aec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twtxt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def tweet(ctx, created_at, twtfile, text):
else:
post_tweet_hook = ctx.obj["conf"].post_tweet_hook
if post_tweet_hook:
run_post_tweet_hook(post_tweet_hook, ctx.obj["conf"].options)
if not run_post_tweet_hook(post_tweet_hook, ctx.obj["conf"].options):
click.echo("✗ post_tweet_hook returned non-zero")


@cli.command()
Expand Down

0 comments on commit 59c7aec

Please sign in to comment.