Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
added more conditions to check in if statement
  • Loading branch information
Kudzmat authored Oct 9, 2024
1 parent df0b9d9 commit c5c6ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NoseBleedSeat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def home(request):
player1_headshot, player1_bio, player1_id = fetch_player_data(player1)
player2_headshot, player2_bio, player2_id = fetch_player_data(player2)

if not player1_headshot or not player2_headshot:
if not player1_headshot or not player2_headshot or not player1_bio or not player2_bio or not player1_id or not player2_id:
raise ValueError("Player not found")

except ValueError as e:
Expand Down

0 comments on commit c5c6ac2

Please sign in to comment.