Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 2207ef3

Browse files
committed
Update, date - Fri 07/29/2022, time - 3:47:07.20
1 parent 123e7bc commit 2207ef3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cod_api/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ async def __sendRequest(self, url: str):
197197
if type(respond) != Exception:
198198
if respond.status_code == 200:
199199
data = respond.json()
200+
print(data)
200201
if data['status'] == 'success':
201202
data = self.__mapping(data['data'])
202203
# delete scope data
@@ -327,7 +328,10 @@ def __mapping(self, data):
327328
print(e)
328329

329330
# delete scope data
330-
del guns, modes, perks, match, loadout, perk
331+
try:
332+
del guns, modes, perks, match, loadout, perk
333+
except UnboundLocalError:
334+
pass
331335

332336
# return mapped or unmapped data
333337
return data

0 commit comments

Comments
 (0)