diff options
author | evshiron <evshiron@gmail.com> | 2022-11-05 14:12:20 +0000 |
---|---|---|
committer | evshiron <evshiron@gmail.com> | 2022-11-05 14:12:20 +0000 |
commit | b6cfaaa20b81d16a978524c952412cfc4d89a414 (patch) | |
tree | e0aa306e34e796c79f657d2a73f558de46f80764 /modules/api/api.py | |
parent | 73e1cd6f53f3566973805666a4049450cdb8da1b (diff) | |
parent | 62e3d71aa778928d63cab81d9d8cde33e55bebb3 (diff) | |
download | stable-diffusion-webui-gfx803-b6cfaaa20b81d16a978524c952412cfc4d89a414.tar.gz stable-diffusion-webui-gfx803-b6cfaaa20b81d16a978524c952412cfc4d89a414.tar.bz2 stable-diffusion-webui-gfx803-b6cfaaa20b81d16a978524c952412cfc4d89a414.zip |
Merge branch 'master' into fix/encode-pnginfo
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 2a43085f..112000b8 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -231,6 +231,10 @@ class Api: return options def set_config(self, req: OptionsModel): + # currently req has all options fields even if you send a dict like { "send_seed": false }, which means it will + # overwrite all options with default values. + raise RuntimeError('Setting options via API is not supported') + reqDict = vars(req) for o in reqDict: setattr(shared.opts, o, reqDict[o]) |