Skip to content

Commit 8f60285

Browse files
committed
fix toml import
1 parent c267fee commit 8f60285

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oneping/providers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ def transcribe_response_openai(audio):
273273
# fault tolerant toml loader
274274
def load_toml(file):
275275
if os.path.exists(file):
276-
return tomllib.load(file)
276+
with open(file) as fid:
277+
return tomllib.load(fid)
277278
else:
278279
return {}
279280

0 commit comments

Comments
 (0)