Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Error handling in Python
elena1234
Feb 9th, 2022
864
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
func
(
num1
,
num2
)
:
try
:
return
num1 / num2
except
(
TypeError
,
ValueError
)
as
error:
raise
error
print
(
func
(
1
,
"4"
)
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Exploit 500$ in 15 Minutes
JavaScript | 6 sec ago | 0.32 KB
Make $1500 in 20 minutes
Java | 8 sec ago | 0.08 KB
⭐Crypto Exchange Profit Method⭐
JavaScript | 14 sec ago | 0.32 KB
Exploit 500$ in 15 Minutes
Java | 21 sec ago | 0.08 KB
Profit Method
JavaScript | 22 sec ago | 0.32 KB
ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 30 sec ago | 0.32 KB
ChangeNOW Exploit
Java | 34 sec ago | 0.09 KB
⭐ Free ETH Method ⭐
JavaScript | 38 sec ago | 0.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!