In except blocks, the raise statement can be used without arguments to re-raise whatever exception occurred.
try:
num = 5 / 0
except:
print('An error occurred')
raise
The assert can take a second argument that is passed to the AssertionError raised if the assertion fails.