From e420461624f493e6716a455caaa287c2a57a6878 Mon Sep 17 00:00:00 2001 From: Morgan Collett Date: Mon, 08 Sep 2008 19:53:05 +0000 Subject: #8352: Fix keep error with no document --- diff --git a/NEWS b/NEWS index 38a338c..3440911 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +* #8352 Fix keep error with no document (morgs) + 50 * #7948, #7168, #6488 Fix saving to the datastore (morgs) diff --git a/readactivity.py b/readactivity.py index 40cd061..5cf31ad 100644 --- a/readactivity.py +++ b/readactivity.py @@ -247,6 +247,10 @@ class ReadActivity(activity.Activity): search text. """ + if self._tempfile is None: + # Workaround for closing Read with no document loaded + raise NotImplementedError + try: self.metadata['Read_current_page'] = \ str(self._document.get_page_cache().get_current_page()) -- cgit v0.9.1