From a98e5767f3fad6162f9b01e3974ccaf211703c89 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 16 Jan 2009 06:39:46 +0000 Subject: Bug #255101 - Fix 'Permission denied' error handling in NewsManager.getUnreadItems(). If there's no permission to lock the unread file, skip the lock and try to read the file anyway. svn path=/main/trunk/; revision=12521 --- pym/portage/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage/news.py') diff --git a/pym/portage/news.py b/pym/portage/news.py index 90dd3a065..b20fd422e 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -157,7 +157,7 @@ class NewsManager(object): try: unread_lock = lockfile(unread_filename, wantnewlockfile=1) except (InvalidLocation, OperationNotPermitted, PermissionDenied): - return 0 + pass try: try: return len(grabfile(unread_filename)) -- cgit v1.2.3-1-g7c22