From c78ec6b3bd4c4b954b212d56119ee3537c98d980 Mon Sep 17 00:00:00 2001 From: Amanda Hickman Date: Wed, 3 Jan 2018 06:52:55 -0800 Subject: [PATCH] Little spelling fix (#695) * Fixed spelling of "occurred" * Fix spelling of occurred. * fixed one lingering misspelling --- tests/unit/test_exceptions.py | 4 ++-- vdirsyncer/cli/utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py index 436f034..353ad44 100644 --- a/tests/unit/test_exceptions.py +++ b/tests/unit/test_exceptions.py @@ -2,7 +2,7 @@ from vdirsyncer import exceptions def test_user_error_problems(): - e = exceptions.UserError('A few problems occured', problems=[ + e = exceptions.UserError('A few problems occurred', problems=[ 'Problem one', 'Problem two', 'Problem three' @@ -11,4 +11,4 @@ def test_user_error_problems(): assert 'one' in str(e) assert 'two' in str(e) assert 'three' in str(e) - assert 'problems occured' in str(e) + assert 'problems occurred' in str(e) diff --git a/vdirsyncer/cli/utils.py b/vdirsyncer/cli/utils.py index a76f50e..765c411 100644 --- a/vdirsyncer/cli/utils.py +++ b/vdirsyncer/cli/utils.py @@ -144,9 +144,9 @@ def handle_cli_error(status_name=None, e=None): import traceback tb = traceback.format_tb(tb) if status_name: - msg = 'Unknown error occured for {}'.format(status_name) + msg = 'Unknown error occurred for {}'.format(status_name) else: - msg = 'Unknown error occured' + msg = 'Unknown error occurred' msg += ': {}\nUse `-vdebug` to see the full traceback.'.format(e)