From: Adam Sampson Date: Fri, 2 Aug 2013 12:03:52 +0000 (+0000) Subject: Catch AttributeError consistently when looking for new attributes. X-Git-Tag: v2.18~5 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=377b645915f1f7b602b43ec715adf0a52d53b9b3;p=rawdog%2F.git Catch AttributeError consistently when looking for new attributes. --- diff --git a/NEWS b/NEWS index ef1a250..29c9c5e 100644 --- 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 diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 3e61659..2a862fa 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -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.