(index, links, key)
| 1 | def main(index, links, key): |
| 2 | try: |
| 3 | index = file(index, 'rU', 0).read() |
| 4 | try: |
| 5 | links = file(links, 'rU', 0).read() |
| 6 | try: |
| 7 | source = build(index, links, key) |
| 8 | try: |
| 9 | html(source) |
| 10 | except: |
| 11 | plain('ERROR: the source could not be displayed.') |
| 12 | except: |
| 13 | plain('ERROR: the source could not be built.') |
| 14 | except: |
| 15 | plain('ERROR: %s (LINKS) cannot be found.' % links) |
| 16 | except: |
| 17 | plain('ERROR: %s (INDEX) cannot be found.' % index) |
| 18 | |
| 19 | def build(index, links, key): |
| 20 | links = parse(links) |
no test coverage detected