Made the except general so it catches all exceptions