Skip to content

Commit 56df920

Browse files
committed
Fix dump if prefix output has no folder
1 parent d111a3c commit 56df920

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/dump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
args = parser.parse_args()
2424

2525
output_dir = os.path.dirname(args.output_prefix)
26-
os.makedirs(output_dir, exist_ok=True)
26+
if output_dir:
27+
os.makedirs(output_dir, exist_ok=True)
28+
2729

2830
cursor = ""
2931
batch_count = 1

0 commit comments

Comments
 (0)