smhenderson89 / FloridaMan

A Python web scrapper for a database of "Florida Man" new stories
1 stars 0 forks source link

Add Error Checking to avoid 500 #19

Closed smhenderson89 closed 2 years ago

smhenderson89 commented 2 years ago

10.1.80.150 - - [16/Apr/2022:01:19:59 +0000] "GET /favicon.ico HTTP/1.1" 500 290 "https://fmanhoroscope.herokuapp.com/1235" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" 2022-04-16T01:19:59.353359+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=fmanhoroscope.herokuapp.com request_id=5006c0aa-688a-4dd1-8c4e-826dbc7b166f fwd="24.5.93.66" dyno=web.1 connect=0ms service=1ms status=500 bytes=463 protocol=https

Add error checking to avoid going to a bad date in the URL ("1235) for December 35.

smhenderson89 commented 2 years ago

Made new form, user unable to submit date that doesn't exist. If you users type in bad date into the url, will receive flash message to can dates.