mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 04:46:26 -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)
|
||||
except ValidationError as err:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user