🐿️
24
c/bad-tech-predictionsabby836abby83611d agoProlific Poster

Spent 12 hours debugging a Python script that needed 2 lines of fixes

I was working on a web scraper for a client project last week and kept getting a weird error when parsing dates. After 12 hours of checking regex, libraries, and timezone settings, I finally posted the code on a forum. Someone pointed out I was passing the wrong variable name to the date function. Fixed it in under 2 minutes. Has anyone else spent way too long on something that simple?
2 comments

Log in to join the discussion

Log In
2 Comments
jordanc68
jordanc6811d ago
Man I used to think I was too careful for that, but yeah this has absolutely humbled me.
4
skyler_craig
Doesn't it feel like life works that way sometimes, @jordanc68... like you'll waste a whole afternoon trying to fix something only to realize the solution was staring you right in the face the whole time? It's almost like our brains just get so locked into one way of thinking we stop seeing the obvious stuff.
4