Skip to content

Commit c9abf9c

Browse files
committed
add raise
1 parent 6b4e730 commit c9abf9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys;
44
try:
55
1/0;
6+
# raise BaseException('...'); 抛出异常
67
except :# 所有异常
78
print "Unexpected error:", sys.exc_info()[0]
89
else:

0 commit comments

Comments
 (0)