Skip to content

Commit

Permalink
Fixed: If no settings file, return empty. (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang authored Oct 31, 2024
1 parent bfd9c30 commit be0cbf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/comfySettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export class ComfySettings {

private loadSettings(): ComfySettingsData {
if (!fs.existsSync(this.filePath)) {
throw new Error(`Settings file ${this.filePath} does not exist`);
log.info(`Settings file ${this.filePath} does not exist`);
return {};
}
try {
const fileContent = fs.readFileSync(this.filePath, 'utf-8');
Expand Down

0 comments on commit be0cbf4

Please sign in to comment.