Changeset ee8f734 in sasmodels for sasmodels/modelinfo.py


Ignore:
Timestamp:
Apr 6, 2016 5:52:02 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
541e7c9
Parents:
398aa94
Message:

only use bare except when annotating an exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/modelinfo.py

    r21b116f ree8f734  
    5757        if low >= high: 
    5858            raise ValueError("require low < high") 
    59     except: 
     59    except Exception: 
    6060        raise ValueError("invalid limits %s for %s"%(limits, name)) 
    6161 
     
    9595            length = int(ref) 
    9696            control = None 
    97         except: 
     97        except Exception: 
    9898            length = None 
    9999            control = ref 
Note: See TracChangeset for help on using the changeset viewer.