mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
9 lines
188 B
Python
9 lines
188 B
Python
|
|
#Yield may raise -- E.g. in a context manager
|
|
def yield_from_in_try():
|
|
resources = get_resources()
|
|
try:
|
|
yield from resources
|
|
except Exception as exc:
|
|
log(exc)
|