hooks/notification.py
changeset 2900 9d65e0350aa1
parent 2847 c2ee28f4d4b1
child 3023 7864fee8b4ec
--- a/hooks/notification.py	Tue Aug 18 09:12:52 2009 +0200
+++ b/hooks/notification.py	Tue Aug 18 09:13:12 2009 +0200
@@ -28,8 +28,8 @@
     category = 'notification'
 
     def select_view(self, vid, rset, row=0, col=0):
-        return self._cw.vreg['views'].select_object(vid, self._cw,
-                                                       rset=rset, row=0, col=0)
+        return self._cw.vreg['views'].select_or_none(vid, self._cw,
+                                                     rset=rset, row=0, col=0)
 
 
 class StatusChangeHook(NotificationHook):