Changeset 558d3b3 in sasmodels


Ignore:
Timestamp:
May 11, 2016 4:59:44 AM (9 years ago)
Author:
piotr
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:
01b8659
Parents:
bd4ed1b
Message:

Exit silently if no source available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    ra5da1f2 r558d3b3  
    722722 
    723723    # find the defintion lines for the different code blocks 
    724     source = inspect.getsource(kernel_module) 
     724    try: 
     725        source = inspect.getsource(kernel_module) 
     726    except IOError: 
     727        return 
    725728    for k, v in enumerate(source.split('\n')): 
    726729        if v.startswith('Iqxy'): 
Note: See TracChangeset for help on using the changeset viewer.