Skip to content

Commit 235cfc7

Browse files
committed
Revert "avoid exception when unauthorized"
This reverts commit 443e92b.
1 parent 125a3e2 commit 235cfc7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

changelog.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def main(vrn, d):
2727

2828
def gen_log(prompt):
2929

30-
log = "Failed to generated changelog. Ensure that API key is valid."
3130
auth = os.environ.get('LLM_JWT')
3231
if auth:
3332
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {auth}"}
@@ -49,7 +48,7 @@ def gen_log(prompt):
4948
log = re.sub(r"^Let me know.*\n?", '', log, flags=re.MULTILINE)
5049
except Exception as e:
5150
print(
52-
f"{log}. Error: {type(e)} {e} {r}")
51+
f"Failed to generate changelog. Error: {type(e)} {e} {r}")
5352
else:
5453
log = "No auth token"
5554

0 commit comments

Comments
 (0)