mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Corrected exception handling in get_serializer_for_model()
This commit is contained in:
parent
d7e40de9da
commit
d334bd4477
@ -37,7 +37,7 @@ def get_serializer_for_model(model, prefix=''):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
return dynamic_import(serializer_name)
|
return dynamic_import(serializer_name)
|
||||||
except ImportError:
|
except AttributeError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user