From d37bdc7a89d025c99b10e6f0d6ea4fc2dfc62a88 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 13 Oct 2011 22:23:40 +0200
Subject: [PATCH] tryin to unpickle a GNU dbm file doesn't produce the same
 exception as bsddb. Handle both. Fixes #7013

---
 src/plugins/plugin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/plugin.py b/src/plugins/plugin.py
index 08a77aea7..8c5856c07 100644
--- a/src/plugins/plugin.py
+++ b/src/plugins/plugin.py
@@ -250,7 +250,7 @@ class GajimPluginConfig():
             try:
                 self.data = cPickle.load(fd)
                 fd.close()
-            except EOFError:
+            except:
                 fd.close()
                 try:
                     import shelve