X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/196df56422f4c2e5b77cc7e6596b6d4326d9ba41..c9355cb6a53e0fa130ebe8458f9bcda3ef0c4a50:/lib/vstorage.py?ds=sidebyside diff --git a/lib/vstorage.py b/lib/vstorage.py index 01ee7b88..4c3cbade 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -143,7 +143,7 @@ class VersionedStorage(object): name = filename[len(self.repo_prefix):].strip('/') return urlunquote(name) - def __contains__(self, title): + def __contains__(self, title): return urlquote(title) in self.repo.dirstate def __iter__(self): @@ -270,6 +270,8 @@ class VersionedStorage(object): try: return open(self._file_path(title), "rb") except IOError: + import traceback + print traceback.print_exc() raise DocumentNotFound() def page_file_meta(self, title):