Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'readactivity.py')
-rw-r--r--readactivity.py4
1 files changed, 4 insertions, 0 deletions
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())