(func)
| 17 | |
| 18 | |
| 19 | def _wrap_with_try_except(func): |
| 20 | def wrapper(*args, **kwargs): |
| 21 | try: |
| 22 | return func(*args, **kwargs) |
| 23 | except Exception as e: |
| 24 | logger.exception("Failed to parse data source", exc_info=e) |
| 25 | raise e |
| 26 | |
| 27 | return wrapper |
| 28 | |
| 29 | |
| 30 | def parse_with_workers(method_name: callable, items: list, **kwargs): |
no outgoing calls
no test coverage detected