try:
# code can be causes exception
except SomeException as err:
print(err)
except Exception as err:
print(err)
else:
# if there is no exception
# this code will be called
finally:
# do not care, has exception or not
# called once anyway
else
구문을 잘쓰면 요긴하게 쓸 수 있겠다.
python selenium에 대한 글을 썼는데 날라갔다..