summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/rpath.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-01-19 09:20:19 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-01-19 09:20:19 +0000
commit74d982eeffd36426ca93586344c800d029193eaf (patch)
tree9c7c2c9a86bc02eec41ecfcd1bab3caf34a5cc8e /rdiff-backup/rdiff_backup/rpath.py
parent9d9276ef4205aef4b2ca8b5c8ecba86829845486 (diff)
downloadrdiff-backup-74d982eeffd36426ca93586344c800d029193eaf.tar.gz
Fixed socket too long error
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-10@261 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 14a68c7..426170c 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -20,6 +20,16 @@ import os, stat, re, sys, shutil, gzip, socket
from static import *
+class SkipFileException(Exception):
+ """Signal that the current file should be skipped but then continue
+
+ This exception will often be raised when there is problem reading
+ an individual file, but it makes sense for the rest of the backup
+ to keep going.
+
+ """
+ pass
+
class RPathException(Exception): pass
class RPathStatic:
@@ -209,7 +219,9 @@ class RPathStatic:
"""
assert rpath.conn is Globals.local_connection
s = socket.socket(socket.AF_UNIX)
- s.bind(rpath.path)
+ try: s.bind(rpath.path)
+ except socket.error, exc:
+ raise SkipFileException("Socket error: " + str(exc))
def gzip_open_local_read(rpath):
"""Return open GzipFile. See security note directly above"""