From e67bed4fda83dcfceab3d32d1ff42515dfc45bba Mon Sep 17 00:00:00 2001 From: zuber Date: Tue, 9 Feb 2010 21:37:28 +0100 Subject: [PATCH] =?utf8?q?Mo=C5=BCe=20to=20poprawi=20buga=20z=20dodawaniem?= =?utf8?q?=20dokument=C3=B3w=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/vstorage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vstorage.py b/lib/vstorage.py index d67e2c10..9710c7be 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -285,11 +285,12 @@ class VersionedStorage(object): def page_meta(self, title): """Get page's revision, date, last editor and his edit comment.""" - + if not title in self: + raise DocumentNotFound() + filectx_tip = self._find_filectx(title) if filectx_tip is None: raise DocumentNotFound() - #return -1, None, u'', u'' rev = filectx_tip.filerev() filectx = filectx_tip.filectx(rev) date = datetime.datetime.fromtimestamp(filectx.date()[0]) -- 2.20.1