(fut)
| 909 | |
| 910 | |
| 911 | def _log_on_exception(fut): |
| 912 | if fut.cancelled(): |
| 913 | return |
| 914 | |
| 915 | exc = fut.exception() |
| 916 | if exc is None: |
| 917 | return |
| 918 | |
| 919 | context = { |
| 920 | 'message': |
| 921 | f'{exc.__class__.__name__} exception in shielded future', |
| 922 | 'exception': exc, |
| 923 | 'future': fut, |
| 924 | } |
| 925 | if fut._source_traceback: |
| 926 | context['source_traceback'] = fut._source_traceback |
| 927 | fut._loop.call_exception_handler(context) |
| 928 | |
| 929 | |
| 930 | def shield(arg): |
nothing calls this directly
no test coverage detected
searching dependent graphs…