From 2819f86e10f1d48fa7e2dc4cfae271be136e2d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 29 Sep 2016 16:28:41 +0200 Subject: [PATCH] Some SVN 0.3.43 interface changes. --- attract/subversion.py | 2 +- tests/test_subversion.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attract/subversion.py b/attract/subversion.py index b7493fd..270e329 100644 --- a/attract/subversion.py +++ b/attract/subversion.py @@ -40,7 +40,7 @@ class CommitLogObserver(object): self.last_seen_revision = log_entry.revision self._parse_log_entry(log_entry) - except svn.common.SvnCommandError: + except svn.common.SvnException: # The SVN library just raises a SvnCommandError when something goes wrong, # without any structured indication of the error. There isn't much else # we can do, except to log the error and return. diff --git a/tests/test_subversion.py b/tests/test_subversion.py index 5407eca..b36d1e2 100644 --- a/tests/test_subversion.py +++ b/tests/test_subversion.py @@ -128,7 +128,7 @@ class TestCommitLogObserver(unittest.TestCase): """SVN errors should not crash the observer.""" self.mock_client.log_default = mock.Mock(name='log_default', - side_effect=svn.common.SvnCommandError('unittest')) + side_effect=svn.common.SvnException('unittest')) record_blink = mock.Mock(name='record_blink', spec={'__name__': 'record_blink'})