Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
David Hultén
4,328 PointsIm getting a AttributeError: 'NoneType' but i cant find what's wrong with the code
after running "python address_book.py" in the console i get this error message:
Traceback (most recent call last):
File "/home/treehouse/workspace/address_book.py", line 32, in <module>
print(line.search(data).groupdict())
AttributeError: 'NoneType' object has no attribute 'groupdict'
here is my code i used:
David Hultén
4,328 PointsDavid Hultén
4,328 PointsAnd if someone could explain how to add the code itself that would be great, bc i used a snapshot this time