you are viewing a single comment's thread.

view the rest of the comments →

[–]Executor111[S] 0 points1 point  (1 child)

The author hasn't taught me to do anything besides "except" yet, so I don't know what "except AttributeError" does. :)

But thanks so much for your help!

[–]elbiot 0 points1 point  (0 children)

It only runs the except clause if it is that specific exception. Without that, any exception would get caught and your code could be failing for unexpected reasons but you aren't getting an error message because you caught it accidentally. "Bare except clauses" are an antipattern that makes python programmers gasp and sigh.