Skip to content

Commit

Permalink
someone has not played comp in a while causes vry to crash bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
OwOHamper committed Aug 25, 2022
1 parent e5b71ca commit ca31d1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
from colr import color

version = "2.3"
version = "2.31"
enablePrivateLogging = True
hide_names = True
hide_levels = True
Expand Down
5 changes: 4 additions & 1 deletion src/player_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def get_stats(self, puuid):
r = self.Requests.fetch('pd', f"/match-details/v1/matches/{response.json()['Matches'][0]['MatchID']}", "get")
# pyperclip.copy(str(r.json()))
if r.status_code == 404: # too old match
return "N/a"
return {
"kd": "N/a",
"hs": "N/a"
}

total_hits = 0
total_headshots = 0
Expand Down

0 comments on commit ca31d1c

Please sign in to comment.