Skip to content

Commit c5a29f1

Browse files
Merge pull request #626 from CAinDE/ensure-trailing-slash
2 parents 57fcb7a + b5f8350 commit c5a29f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyathena/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def __init__(
261261
assert self.s3_staging_dir or self.work_group, (
262262
"Required argument `s3_staging_dir` or `work_group` not found."
263263
)
264-
264+
265+
if self.s3_staging_dir and not self.s3_staging_dir.endswith("/"):
266+
self.s3_staging_dir = f"{self.s3_staging_dir}/"
267+
265268
if session:
266269
self._session = session
267270
else:

0 commit comments

Comments
 (0)