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