Instead of general error use, specify the types of errors and how to handle them. Exceptions: https://docs.python.org/3/library/exceptions.html