Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2013-06-22 07:49:51 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2013-06-22 07:49:51 (GMT)
commit5c08c4d983ab7fa703573cbe2077ee8f95370e67 (patch)
tree52246fccfc7d536be1f068d18a7243d29216c4c4
parent8f186bc8a931f14fdab0efdec9b084fde8f2ecfe (diff)
journal2webdav: catch errors for invalid object ids
If the object id is invalid (i.e. the data store object doesn't exist at all or isn't exported), fsemulation will raise a ValueError rather than IOError.
-rwxr-xr-xjournal2webdav2
1 files changed, 1 insertions, 1 deletions
diff --git a/journal2webdav b/journal2webdav
index e644e06..2eef7bc 100755
--- a/journal2webdav
+++ b/journal2webdav
@@ -413,7 +413,7 @@ class JournalHandler(dav_interface):
try:
# WebDAV doesn't support symlinks :-/
fs_object = self._fs.resolve(path, follow_links=True)
- except IOError:
+ except (IOError, ValueError):
# FIXME: better error mapping
raise DAV_NotFound