diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-06 04:40:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-06 04:40:29 +0300 |
commit | 7c0d2ffb6451583189158bae13522b2d8f317ce8 (patch) | |
tree | af7a74e64da6e20f6ce7b67975e144d2f1660b1f /release/scripts/modules/rna_info.py | |
parent | 63bc8405faace74b39942bf0b8ed158bc8f756ad (diff) |
pep8 cleanup
Diffstat (limited to 'release/scripts/modules/rna_info.py')
-rw-r--r-- | release/scripts/modules/rna_info.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index 1c1a32becf9..8a93f98815c 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -338,7 +338,7 @@ def _GetInfoRNA(bl_rna, cls, parent_id=''): key = parent_id, bl_rna.identifier try: return cls.global_lookup[key] - except: + except KeyError: instance = cls.global_lookup[key] = cls(bl_rna) return instance @@ -367,7 +367,6 @@ def BuildRNAInfo(): rna_children_dict = {} # store all rna_structs nested from here rna_references_dict = {} # store a list of rna path strings that reference this type rna_functions_dict = {} # store all functions directly in this type (not inherited) - rna_words = set() def rna_id_ignore(rna_id): if rna_id == "rna_type": @@ -512,7 +511,7 @@ def BuildRNAInfo(): try: rna_prop_ptr = rna_prop.fixed_type - except: + except AttributeError: rna_prop_ptr = None # Does this property point to me? |