Fixed
This commit is contained in:
parent
849a74908d
commit
202ab2e2d3
@ -322,13 +322,16 @@ def get_api_key():
|
|||||||
result = auth(based)
|
result = auth(based)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
apikey = get_api_key()
|
apikey = get_api_key()
|
||||||
if apikey is None:
|
if apikey is None:
|
||||||
print(typer.style("Auth Error", fg=typer.colors.RED))
|
print(typer.style("Auth Error", fg=typer.colors.RED))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
reqHeader = {"Authorization": "Bearer " + apikey}
|
reqHeader['Authorization'] += apikey
|
||||||
app()
|
app()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
reqHeader = {"Authorization": "Bearer "}
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user