Skip to content

Commit

Permalink
change response http code when inputs un correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
ReYaNOW committed Dec 29, 2023
1 parent 331224a commit 79047ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page_analyzer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_url_page():

if not fixed_url:
messages = get_flashed_messages(with_categories=True)
return render_template('index.html', messages=messages)
return render_template('index.html', messages=messages), 422

db = Database(connect=True)
found_url = db.get_url_by_name(fixed_url)
Expand Down

0 comments on commit 79047ce

Please sign in to comment.