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)