diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2008-09-08 19:53:05 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-09-08 19:54:47 (GMT) |
commit | e420461624f493e6716a455caaa287c2a57a6878 (patch) | |
tree | b906003fbb3887d111b299ceea40c1d50f07b2c2 | |
parent | 9a15e0205f30fbbb84cb64516bd56a1bbf29399d (diff) |
#8352: Fix keep error with no document
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | readactivity.py | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -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()) |