(Reminders): Small UI improvements.

This commit is contained in:
2021-09-15 22:05:34 +03:00
parent 765b8a3c2b
commit 0e63c2da7a
3 changed files with 73 additions and 49 deletions

View File

@@ -253,7 +253,10 @@ def parse_ranges(ranges_str, ignore_errors=False, separator=',', **kwargs):
integers = [int(item) for item in numbers if item.isdigit()]
if not ignore_errors and len(integers) != len(numbers):
raise SafeCancellation("Couldn't parse the provided selection!")
raise SafeCancellation(
"Couldn't parse the provided selection!\n"
"Please provide comma separated numbers and ranges, e.g. `1, 5, 6-9`."
)
return integers