Changeset ee8f734 in sasmodels for sasmodels/core.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/core.py

    rd2bb604 ree8f734  
    2424    from . import kernelcl 
    2525    HAVE_OPENCL = True 
    26 except: 
     26except Exception: 
    2727    HAVE_OPENCL = False 
    2828 
     
    6464    """ 
    6565    try: s + '' 
    66     except: return False 
     66    except Exception: return False 
    6767    return True 
    6868 
Note: See TracChangeset for help on using the changeset viewer.