Skip to content

Commit 4d26e6d

Browse files
committed
clarify Delivery-Time type token parse failure exception type
1 parent 979eed7 commit 4d26e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messaging/mms/mms_pdu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def decode_delivery_time_value(byte_iter):
363363
elif token == 129:
364364
token_type = 'relative'
365365
else:
366-
raise Exception('Delivery-Time type token value is undefined'
366+
raise wsp_pdu.DecodeError('Delivery-Time type token value is undefined'
367367
' (%s), should be either 128 or 129' % token)
368368
return (token_type, value)
369369

0 commit comments

Comments
 (0)