mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 18:08:21 +02:00
Fix one more error in alias autocompletion
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
@ -138,7 +138,7 @@ class ConsumerViewSet(ReadOnlyProtectedModelViewSet):
|
||||
try:
|
||||
re.compile(alias)
|
||||
valid_regex = True
|
||||
except re.error:
|
||||
except (re.error, TypeError):
|
||||
valid_regex = False
|
||||
suffix = '__iregex' if valid_regex else '__istartswith'
|
||||
alias_prefix = '^' if valid_regex else ''
|
||||
|
Reference in New Issue
Block a user