`except:` with no class is an antipattern. Please do some research whether this block can actually fail in real code. Maybe it can be taken out of the `try:` clause altogether.