Catch AttributeError consistently when looking for new attributes.
authorAdam Sampson <ats@offog.org>
Fri, 2 Aug 2013 12:03:52 +0000 (12:03 +0000)
committerAdam Sampson <ats@offog.org>
Fri, 2 Aug 2013 12:03:52 +0000 (12:03 +0000)
NEWS
rawdoglib/rawdog.py

diff --git a/NEWS b/NEWS
index ef1a2503b92ba3f5839c6077af1cc2a6c8dd4895..29c9c5ebe4052e8860d5694df0b6f9a23c71fb3e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 - rawdog 2.18
 
+Be consistent about catching AttributeError when looking for attributes
+that were added to Rawdog during the 2.x series (spotted by Jakub Wilk).
+
 - rawdog 2.17
 
 Add a one-paragraph description of rawdog to the README file, for use by
index 3e61659385ab4520bee89104df821b8444b6667d..2a862faadaf228be390aecd5ba9afc68dd459db1 100644 (file)
@@ -1239,7 +1239,7 @@ class Rawdog(Persistable):
                # Convert to or from splitstate if necessary.
                try:
                        u = self.using_splitstate
-               except:
+               except AttributeError:
                        # We were last run with a version of rawdog that didn't
                        # have this variable -- so we must have a single state
                        # file.