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

dependency missing keyError in exception #233

Open
jhu321 opened this issue Nov 18, 2022 · 0 comments
Open

dependency missing keyError in exception #233

jhu321 opened this issue Nov 18, 2022 · 0 comments

Comments

@jhu321
Copy link

jhu321 commented Nov 18, 2022

in complex.py

class DependencyValue(ComplexNullValue):
"""An item link column value."""

native_type = list
native_default = []

def _convert(self, value):
    try:
        list_ids = value['linkedPulseIds']
        return [int(value['linkedPulseId']) for value in list_ids ]
    except IndexError:
        return []

the except needs to also do keyError, monday seems to send back

  {
                    "id": "dependent_on",
                    "text": "",
                    "value": "{\"changed_at\":\"2021-04-28T19:55:53.979Z\"}"
                },

on a field that has been deleted

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