Skip to content
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

Max() arg is an empty sequence #82

Open
johnchurchill-DOIT opened this issue Dec 1, 2021 · 1 comment
Open

Max() arg is an empty sequence #82

johnchurchill-DOIT opened this issue Dec 1, 2021 · 1 comment

Comments

@johnchurchill-DOIT
Copy link

I'm getting an error when I try and update (replace) an asset using a csv file. The error is (to me) somewhat vague. It just says max() arg is an empty sequence. Since my class isn't using max for anything, I'm curious if someone can help me by pointing to what it is that I may be supplying incorrectly? that would be much appreciated.

@johnchurchill-DOIT
Copy link
Author

I broke my class apart and ran everything line by line and I can see that it occurs when I am attempting to get the latest output_schema like this. output = input_schema.get_latest_output_schema()

johnchurchill-DOIT referenced this issue Dec 6, 2021
* in python, calling max([]) throws an exception, oops
* so we need to ensure that there are schemas present before
  we access them in that way
  * this should fix the test flakiness in jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant