mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 13:26:25 -06:00
Exception.message was deprecated in Python 2.6 and removed in Python 3
This commit is contained in:
parent
dc604ac442
commit
e0751b2a3a
@ -153,7 +153,7 @@ class CustomField(BigIDModel):
|
|||||||
self.validate(default_value)
|
self.validate(default_value)
|
||||||
except ValidationError as err:
|
except ValidationError as err:
|
||||||
raise ValidationError({
|
raise ValidationError({
|
||||||
'default': f'Invalid default value "{self.default}": {err.message}'
|
'default': f'Invalid default value "{self.default}": {err}'
|
||||||
})
|
})
|
||||||
|
|
||||||
# Minimum/maximum values can be set only for numeric fields
|
# Minimum/maximum values can be set only for numeric fields
|
||||||
|
Loading…
Reference in New Issue
Block a user