aboutsummaryrefslogtreecommitdiff
path: root/extensions-builtin/hypertile/scripts
diff options
context:
space:
mode:
authoraria1th <35677394+aria1th@users.noreply.github.com>2023-11-27 22:25:28 +0900
committeraria1th <35677394+aria1th@users.noreply.github.com>2023-11-27 22:25:28 +0900
commitec78354efa179b64e92d6b98d781f6572b4eb084 (patch)
treec3237c4932cf321e3109049ce86c58913cef1123 /extensions-builtin/hypertile/scripts
parent524d6a4dbae68bf557d9c5fe686707d96841e0b5 (diff)
hypertile_xyz: we don't need isnumeric check for AxisOption
Diffstat (limited to 'extensions-builtin/hypertile/scripts')
-rw-r--r--extensions-builtin/hypertile/scripts/hypertile_xyz.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/extensions-builtin/hypertile/scripts/hypertile_xyz.py b/extensions-builtin/hypertile/scripts/hypertile_xyz.py
index 928e9965..9e96ae3c 100644
--- a/extensions-builtin/hypertile/scripts/hypertile_xyz.py
+++ b/extensions-builtin/hypertile/scripts/hypertile_xyz.py
@@ -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: