changeset 5694b87815da in modules/sale_subscription:5.8
details: 
https://hg.tryton.org/modules/sale_subscription?cmd=changeset&node=5694b87815da
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 349f1c862421 -r 5694b87815da recurrence.py
--- a/recurrence.py     Fri Jan 01 16:38:23 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