-
Notifications
You must be signed in to change notification settings - Fork 192
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
Randomly failing test (test_list_worker_slot_warning) #3336
Comments
Most likely related or duplicate of #3051 |
I'm not sure it's a duplicate. Instead, I got the same error as the one reported above. aiida-core/aiida/cmdline/utils/common.py Lines 65 to 70 in 29ad71b
We are checking in line 67 if the result is None, but the exception is raised inside line 65. The reason is that we are calling directly timezone.isoformat_to_datetime on a value that might potentially be empty:aiida-core/aiida/engine/utils.py Line 297 in 29ad71b
The fix is to to make sure that the utility to convert from isoformat to datetime |
The functions `datetime_to_isoformat` and `isoformat_to_datetime` assumed to always have a proper type (string or datetime) as input. However, in some cases, they were called with values that could be potentially `None`, like this in aiida/engine/utils.py: ``` timezone.isoformat_to_datetime(manager.get(key).value)) ``` We are now directly returning `None` if `None` is passed as an input (and then it's up to the caller to then decide what to do with the value. Fixes aiidateam#3336
This was seen failing on Travis for Python3.6 when running tests using the django backend.
It was a PR that only touches the documentation (#3335).
Error:
The text was updated successfully, but these errors were encountered: