]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - khashmir.py
Fix some errors found by PyLint.
[quix0rs-apt-p2p.git] / khashmir.py
index 10bac3bac0f5ebc89ffd54c5cfe51aec5ee48106..f585e16ad07fc1b717496f543cdd4e4b955a9f94 100644 (file)
@@ -31,7 +31,6 @@ class KhashmirDBExcept(Exception):
 
 # this is the base class, has base functionality and find node, no key-value mappings
 class KhashmirBase(protocol.Factory):
-    __slots__ = ('listener', 'node', 'table', 'store', 'app', 'last', 'protocol')
     _Node = KNodeBase
     def __init__(self, host, port, db='khashmir.db'):
         self.setup(host, port, db)
@@ -96,7 +95,7 @@ class KhashmirBase(protocol.Factory):
             #self.store.autocommit = 0
         except:
             import traceback
-            raise KhashmirDBExcept, "Couldn't open DB", traceback.exc_traceback
+            raise KhashmirDBExcept, "Couldn't open DB", traceback.format_exc()
         
     def _createNewDB(self, db):
         self.store = sqlite.connect(db=db)