Skip to content

Commit

Permalink
Update nodes.py
Browse files Browse the repository at this point in the history
Improve error logging

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and alexopus committed Jan 28, 2024
1 parent 8702441 commit bb73679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def save_json(image_info, filename):
with open(f'{filename}.json', 'w') as workflow_file:
json.dump(workflow, workflow_file)
print(f'Saved workflow to {filename}.json')
except:
print('Failed to save workflow as json, proceeding remainder of saving execution')
except Exception as e:
print(f'Failed to save workflow as json due to: {e}, proceeding with the remainder of saving execution')


def make_pathname(filename, seed, modelname, counter, time_format, sampler_name, steps, cfg, scheduler, denoise):
Expand Down

0 comments on commit bb73679

Please sign in to comment.