mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
hypertile_xyz: we don't need isnumeric check for AxisOption
This commit is contained in:
parent
524d6a4dba
commit
ec78354efa
@ -7,10 +7,7 @@ def int_applier(value_name:str, min_range:int = -1, max_range:int = -1):
|
||||
"""
|
||||
Returns a function that applies the given value to the given value_name in opts.data.
|
||||
"""
|
||||
# convert to int
|
||||
def validate(value_name:str, value:str):
|
||||
if not value.isnumeric():
|
||||
raise ValueError(f"Value {value} for {value_name} must be an integer")
|
||||
value = int(value)
|
||||
# validate value
|
||||
if not min_range == -1:
|
||||
|
Loading…
Reference in New Issue
Block a user