Skip to content

Commit 0110049

Browse files
committed
Formatting fixes for 401 error push
1 parent 44e986c commit 0110049

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/together/files.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,14 @@ def upload_file(self, file: str) -> Dict[str, Union[str, int]]:
129129
self.logger.debug(f"Response status code: {response.status_code}")
130130

131131
if response.status_code == 401:
132-
self.logger.critical(f"This job would exceed your free trial credits. Please upgrade to a paid account through Settings -> Billing on api.together.ai to continue.")
132+
self.logger.critical(
133+
"This job would exceed your free trial credits. Please upgrade to a paid account through Settings -> Billing on api.together.ai to continue."
134+
)
133135
exit_1(self.logger)
134136
elif response.status_code != 302:
135-
self.logger.critical(f"Unexpected error raised by endpoint. Response status code: {response.status_code}")
137+
self.logger.critical(
138+
f"Unexpected error raised by endpoint. Response status code: {response.status_code}"
139+
)
136140
exit_1(self.logger)
137141

138142
r2_signed_url = response.headers["Location"]

0 commit comments

Comments
 (0)