mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Fix up some wonky code formatting
This commit is contained in:
parent
735d1cacf4
commit
d762e7eedc
@ -99,8 +99,7 @@ def expand_alphanumeric_pattern(pattern):
|
|||||||
# our option_matrix.
|
# our option_matrix.
|
||||||
listerator = cycle([lambda part: [part], parse_alphanumeric_range])
|
listerator = cycle([lambda part: [part], parse_alphanumeric_range])
|
||||||
try:
|
try:
|
||||||
option_matrix = [to_options(part) for to_options, part in zip(listerator, pattern_parts)
|
option_matrix = [to_options(part) for to_options, part in zip(listerator, pattern_parts)]
|
||||||
]
|
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
# Another wart for legacy compatibility. A previous implementation of this function throws ValueError
|
# Another wart for legacy compatibility. A previous implementation of this function throws ValueError
|
||||||
# in some cases, but forms.ValidationError in others, even though a generic utility function has no
|
# in some cases, but forms.ValidationError in others, even though a generic utility function has no
|
||||||
|
Loading…
Reference in New Issue
Block a user