Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#11 from EyeDeck/master
Browse files Browse the repository at this point in the history
Fix crash display
  • Loading branch information
hlky committed Aug 25, 2022
2 parents a6452fb + 0afb4ca commit 905786b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ def sample(init_data, x, conditioning, unconditional_conditioning, sampler_name)
return output_images, seed, info, stats
except RuntimeError as e:
err = e
err_msg = f'CRASHED:<br><textarea rows="5" style="background: black;width: -webkit-fill-available;font-family: monospace;font-size: small;font-weight: bold;">{str(e)}</textarea><br><br>Please wait while the program restarts.'
err_msg = f'CRASHED:<br><textarea rows="5" style="color:white;background: black;width: -webkit-fill-available;font-family: monospace;font-size: small;font-weight: bold;">{str(e)}</textarea><br><br>Please wait while the program restarts.'
stats = err_msg
return [], 1
return [], seed, 'err', stats
finally:
if err:
crash(err, '!!Runtime error (txt2img)!!')
Expand Down Expand Up @@ -816,9 +816,9 @@ def sample(init_data, x, conditioning, unconditional_conditioning, sampler_name)
return output_images, seed, info, stats
except RuntimeError as e:
err = e
err_msg = f'CRASHED:<br><textarea rows="5" style="background: black;width: -webkit-fill-available;font-family: monospace;font-size: small;font-weight: bold;">{str(e)}</textarea><br><br>Please wait while the program restarts.'
err_msg = f'CRASHED:<br><textarea rows="5" style="color:white;background: black;width: -webkit-fill-available;font-family: monospace;font-size: small;font-weight: bold;">{str(e)}</textarea><br><br>Please wait while the program restarts.'
stats = err_msg
return [], 1
return [], seed, 'err', stats
finally:
if err:
crash(err, '!!Runtime error (img2img)!!')
Expand Down

0 comments on commit 905786b

Please sign in to comment.