Sign in
android
/
platform
/
tools
/
idea
/
2250e7e055295bee73366d360d15ea0270573ef6
/
.
/
python
/
testData
/
inspections
/
PyUnboundLocalVariableInspection
/
ControlFlowInAssert.py
blob: b1cc192e89fb85e1c277368f03cbc4146feaaf2f [
file
] [
log
] [
blame
]
# PY-1138
from
models
import
ChartRequest
from
components
.
dbutil
import
DbSession
def
foo
(
requestId
):
with
DbSession
()
as
db
:
req
=
db
.
query
(
ChartRequest
).
get
(
requestId
)
assert
req
is
not
None
,
u
"Invalid request"
print
req