Skip to content

Commit

Permalink
Merge branch 'merge_404' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahAlfaraj committed Nov 29, 2023
2 parents e3c00d6 + 0d06ed6 commit 209eaea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utility/sdapi/python_replacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@ async function loadPromptShortcut(file_name) {
return json
}
} catch (e) {
const file = await folder.createFile('prompt_shortcut.json', {type: storage.types.file, overwrite: true});
if (file.isFile) {
await file.write('{}', {append: false});
data = {};
return data
}
console.warn(e)
return {}
}
Expand Down

0 comments on commit 209eaea

Please sign in to comment.