mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Add checking: if exception and breakpoint -> don't stop. Generate binaries. GitOrigin-RevId: 00205f00752b6ce04e6fa23129eeb2d4f3666a1e
9 lines
172 B
Python
9 lines
172 B
Python
def divide(x, y):
|
|
try:
|
|
result = x / y
|
|
except ZeroDivisionError:
|
|
print("division by zero!")
|
|
else:
|
|
print("result is", result)
|
|
|
|
divide(1,0) |