aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index 21118f0..f850042 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -590,6 +590,8 @@ class Comment (Tree, settings_object.SavedSettingsObject):
# methods for saving/loading/acessing settings and properties.
def load_settings(self, settings_mapfile=None):
+ if self.uuid == INVALID_UUID:
+ return
if settings_mapfile == None:
settings_mapfile = \
self.storage.get(self.id.storage("values"), default="\n")
@@ -601,6 +603,8 @@ class Comment (Tree, settings_object.SavedSettingsObject):
self._setup_saved_settings(settings)
def save_settings(self):
+ if self.uuid == INVALID_UUID:
+ return
mf = mapfile.generate(self._get_saved_settings())
self.storage.set(self.id.storage("values"), mf)