mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Corrected exception handling in get_serializer_for_model()
This commit is contained in:
@@ -37,7 +37,7 @@ def get_serializer_for_model(model, prefix=''):
|
||||
)
|
||||
try:
|
||||
return dynamic_import(serializer_name)
|
||||
except ImportError:
|
||||
except AttributeError:
|
||||
return None
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user