Skip to content

Commit 805111d

Browse files
committed
PR Edits
Signed-off-by: Isaac Milarsky <[email protected]>
1 parent 6198b11 commit 805111d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codejson_index_generator/parsers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import json
22
from json.decoder import JSONDecodeError
33
import base64
4-
import argparse
54
import os
65
import requests
76
import re
8-
import subprocess
97

108
from time import sleep, mktime, gmtime, time, localtime
119
from typing import Dict, Optional
@@ -43,7 +41,7 @@ def hit_endpoint(url,token,method='GET'):
4341
response_json = {}
4442
attempts += 1
4543

46-
if attempts >= REQUEST_RETRIES:
44+
if attempts >= RETRIES:
4745
raise ConnectionError(
4846
f"Rate limit was reached and couldn't be rectified after {attempts} tries"
4947
)

0 commit comments

Comments
 (0)