Some SVN 0.3.43 interface changes.

This commit is contained in:
2016-09-29 16:28:41 +02:00
parent 14eabdfbd5
commit 2819f86e10
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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'})