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 Write Better Python Buggy Logs PDB

Dillon Omane
Dillon Omane
2,739 Points

Why is your app passing an empty string to your get elementbyid method?

I looked at the console because the app was not checking my work. Looks like there is a major CORS issue with the scripts that you are loading inorder to read the script. I would also recommend putting your app into production mode so that this error is not viewable on the customer user end.

starter.py
def something_silly(arg1, arg2):
    if len(arg1) > len(arg2):
        # Import and use PDB here
        import pdb; pdb.set_trace()
        arg1[0] = arg2[0]
    return arg1, arg2

1 Answer

Steven Parker
Steven Parker
231,268 Points

I tried your code in the challenge and it passed. Perhaps it was some temporary issue?

Give it another try.