-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: freqstr may be parsed incorrectly #13930
Conversation
might fix / xref to #8419 |
Current coverage is 85.30% (diff: 100%)@@ master #13930 diff @@
==========================================
Files 139 139
Lines 50157 50162 +5
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 42785 42791 +6
+ Misses 7372 7371 -1
Partials 0 0
|
Now |
ok, rebased. |
splitted = re.split(opattern, freq) | ||
if splitted[-1] != '' and not splitted[-1].isspace(): | ||
# the last element must be blank | ||
raise ValueError('includes garbage characters') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a better message here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is an internal description which is catched immediately. Users wil see " invalid frequency: xxx" as an error.
minor change. lgtm. ping when green. |
thanks! |
git diff upstream/master | flake8 --diff
Invalid freq like below doesn'traise
ValueError
properly. The PR makes all the below raise.