summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/rpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index b2f6f20..3df537a 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -450,11 +450,13 @@ class RORPath:
def getuname(self):
"""Return username that owns the file"""
- return self.data['uname']
+ try: return self.data['uname']
+ except KeyError: return None
def getgname(self):
"""Return groupname that owns the file"""
- return self.data['gname']
+ try: return self.data['gname']
+ except KeyError: return None
def hassize(self):
"""True if rpath has a size parameter"""