Fix URL quoting (wrong function)
This commit is contained in:
parent
5a6bae6b2d
commit
d2e55b4c12
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@ import argparse
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import quote
|
||||||
|
|
||||||
import git
|
import git
|
||||||
import requests
|
import requests
|
||||||
|
@ -50,7 +50,8 @@ class GitHashCache:
|
||||||
|
|
||||||
|
|
||||||
def project_exists(project):
|
def project_exists(project):
|
||||||
project_name = urlencode(project)
|
# We want / to get quoted, so put safe to ""
|
||||||
|
project_name = quote(project, safe="")
|
||||||
request = requests.get(API_URL + project_name)
|
request = requests.get(API_URL + project_name)
|
||||||
|
|
||||||
if request:
|
if request:
|
||||||
|
|
Loading…
Add table
Reference in a new issue