File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def to_python(self, value):
192192
193193 try :
194194 return EUI (value , dialect = mac_unix_common )
195- except AddrFormatError as e :
195+ except ( AddrFormatError , IndexError , TypeError ) as e :
196196 raise ValidationError (e )
197197
198198 def get_prep_value (self , value ):
@@ -238,7 +238,7 @@ def to_python(self, value):
238238
239239 try :
240240 return EUI (value , dialect = mac_eui64 )
241- except AddrFormatError as e :
241+ except ( AddrFormatError , IndexError , TypeError ) as e :
242242 raise ValidationError (e )
243243
244244 def get_prep_value (self , value ):
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def to_internal_value(self, data):
7474 return data
7575 try :
7676 return EUI (data , dialect = mac_unix_common )
77- except (AddrFormatError , TypeError ):
77+ except (AddrFormatError , IndexError , TypeError ):
7878 self .fail ('invalid' )
7979
8080
@@ -93,7 +93,7 @@ def to_internal_value(self, data):
9393 return data
9494 try :
9595 return EUI (data , dialect = mac_eui64 )
96- except (AddrFormatError , TypeError ):
96+ except (AddrFormatError , IndexError , TypeError ):
9797 self .fail ('invalid' )
9898
9999
You can’t perform that action at this time.
0 commit comments