From 46487d7a31122ce65096ec40032878042fc745b1 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 12 Mar 2020 14:03:10 -0700 Subject: [PATCH] Add periods to these exception messages. --- voussoirkit/bytestring.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voussoirkit/bytestring.py b/voussoirkit/bytestring.py index 97f69b9..d014e79 100644 --- a/voussoirkit/bytestring.py +++ b/voussoirkit/bytestring.py @@ -105,13 +105,13 @@ def parsebytes(string): matches = re.findall(r'[\d\.-]+', string) if len(matches) == 0: - raise ValueError('No numbers found') + raise ValueError('No numbers found.') if len(matches) > 1: - raise ValueError('Too many numbers found') + raise ValueError('Too many numbers found.') byte_value = matches[0] if not string.startswith(byte_value): - raise ValueError('Number is not at start of string') + raise ValueError('Number is not at start of string.') # if the string has no text besides the number, just return that int. string = string.replace(byte_value, '')