changeset a373093b65c0 in modules/sale_subscription:default
details: 
https://hg.tryton.org/modules/sale_subscription?cmd=changeset;node=a373093b65c0
description:
        Raise ValueError on incorrect weekday

        issue10000
        review323051007
diffstat:

 recurrence.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a587b9b8523c -r a373093b65c0 recurrence.py
--- a/recurrence.py     Thu Mar 11 12:53:00 2021 +0100
+++ b/recurrence.py     Thu Mar 11 20:28:37 2021 +0100
@@ -170,7 +170,7 @@
             try:
                 cls = WEEKDAYS[weekday[:2]]
             except KeyError:
-                ValueError('Invalid weekday')
+                raise ValueError('Invalid weekday')
             if not weekday[2:]:
                 byweekday.append(cls)
             else:

Reply via email to