sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit bdf4c8accb7fe0ad9e5237e0fd56303405725d4e
parent 15b68c299d99afd8d7a3c00f3cfb9f6d6af3a7af
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Fri,  8 Jun 2007 22:45:53 +0000

handle any errors during manager initialization

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@440 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -101,10 +101,10 @@ module Redwood
   end
 
   def finish
-    Redwood::LabelManager.save
-    Redwood::ContactManager.save
-    Redwood::PersonManager.save
-    Redwood::BufferManager.deinstantiate!
+    Redwood::LabelManager.save if Redwood::LabelManager.instantiated?
+    Redwood::ContactManager.save if Redwood::ContactManager.instantiated?
+    Redwood::PersonManager.save if Redwood::PersonManager.instantiated?
+    Redwood::BufferManager.deinstantiate! if Redwood::BufferManager.instantiated?
   end
 
   ## not really a good place for this, so I'll just dump it here.