changeset ba19580a0a61 in modules/sale_subscription:5.6
details: 
https://hg.tryton.org/modules/sale_subscription?cmd=changeset&node=ba19580a0a61
description:
        Raise ValueError on incorrect weekday

        issue10000
        review323051007
        (grafted from a373093b65c09bb34fb4f1c6e94b8ee758dfe497)
diffstat:

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

diffs (12 lines):

diff -r b52a8764b0bc -r ba19580a0a61 recurrence.py
--- a/recurrence.py     Fri Jan 01 17:14:14 2021 +0100
+++ b/recurrence.py     Thu Mar 11 20:28:37 2021 +0100
@@ -165,7 +165,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