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

Python Python for File Systems Manipulation Consistency

Jeremy Dyck
Jeremy Dyck
12,013 Points

Why am I getting NoneType on my re.search() ?

I wrote this code on my local text editor and it ran fine. Not sure why now I'm getting errors.

Steven Parker
Steven Parker
231,269 Points

You forgot to show the code. Do that, and I'll bet we can explain it.

2 Answers

Steven Parker
Steven Parker
231,269 Points

Remember that the challenge isn't just about creating code that runs. It must also serve a specific purpose. When you work externally you may not be testing for purpose with the same stringency that the challenge does.

Steven Parker
Steven Parker
231,269 Points

Congrats on resolving your own issue! :+1: