mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
11 lines
207 B
Python
11 lines
207 B
Python
def func():
|
|
value = "not-none"
|
|
|
|
<caret>if value is None:
|
|
print("None")
|
|
return
|
|
|
|
try:
|
|
return int(value)
|
|
except ValueError:
|
|
raise RuntimeError("Value is not int") |