diff --git a/git_cl.py b/git_cl.py index 869bbe364..b11ac3a90 100755 --- a/git_cl.py +++ b/git_cl.py @@ -2344,7 +2344,7 @@ class Changelist(object): push_stdout = push_stdout.decode('utf-8', 'replace') except subprocess2.CalledProcessError as e: push_returncode = e.returncode - if 'blocked keyword' in str(e.stdout): + if 'blocked keyword' in str(e.stdout) or 'banned word' in str(e.stdout): raise GitPushError( 'Failed to create a change, very likely due to blocked keyword. ' 'Please examine output above for the reason of the failure.\n'