Commit a9f300a
committed
Fix ensure_directory to handle empty strings
When save_path is a filename without directory, os.dirname(save_path) is
an empty string and ensure_directory fails. This adds a check if the
directory variable contains an empty string before running os.makedirs.1 parent 07210a0 commit a9f300a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments