mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix support for Python 3.7
This commit is contained in:
parent
cd1cbfde30
commit
254a229401
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ NPM_URL = 'https://registry.npmjs.org/%s'
|
|||
|
||||
def configure(config):
|
||||
global NPM_URL
|
||||
if url := config.get('registry'):
|
||||
url = config.get('registry')
|
||||
if url:
|
||||
NPM_URL = f'{url.rstrip("/")}/%s'
|
||||
|
||||
async def get_first_1k(url):
|
||||
|
|
Loading…
Add table
Reference in a new issue