Skip to content

Commit

Permalink
Bugfix/create or update bearer token (#3355)
Browse files Browse the repository at this point in the history
* update create or update script beaer token function

* fix import and print on create or update issues
  • Loading branch information
sliu008 authored Nov 19, 2024
1 parent 06dc9c9 commit 9c811ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/create_or_update_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from datetime import datetime
from groq import Groq
import time
from requests.auth import HTTPBasicAuth


def bearer_token(env):
Expand All @@ -23,8 +24,7 @@ def bearer_token(env):

except Exception as e:
status_code = resp.status_code if 'resp' in locals() and resp else "N/A"
print(f"Error getting the token (status code {status_code}): {e}", exc_info=True)

print(f"Error getting the token (status code {status_code}): {e}")

def get_collection_names(providers, env, collections_list):

Expand Down

0 comments on commit 9c811ae

Please sign in to comment.