Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Timothy Mattingly
14,446 PointsBroke the code when I raised an exception
So, I'm following along and when I got to this point, the program stopped functioning right. When I got here, the console is now printing out, each person owes $none which I understand is a null value. Also in the previous lesson, when I answered the question How much? with a string like "Too much", the console printed:
that's not a valid input, try again...
Now when I enter the string, it prints:
that's not a valid input, try again...
(could not convert string to float: 'too much')
Here's the code I'm working with:

Timothy Mattingly
14,446 Pointsmaybe it expired? I snapped it again:

Steven Parker
216,136 PointsWorkspaces shouldn't expire, but they can always be deleted.
1 Answer

Steven Parker
216,136 PointsIt sounds like it's performing correctly. When you enter a non-numeric input, the "float" conversion causes an exception which would then print the "that's not a valid input, try again..." message.

Timothy Mattingly
14,446 PointsI have a screenshot of my code here: https://i.stack.imgur.com/skeJV.png

Steven Parker
216,136 PointsCurrently, the "split_check" function only returns a value if "number_of_people" is 1 (or less). You need some additional code to have it return a value for other cases.
Steven Parker
216,136 PointsSteven Parker
216,136 PointsAccessing that link returns: "Bummer... The Workspace Snapshot you are looking for doesn't exist."