Misssing MissingFieldException
See original GitHub issueI used to use the following construction:
try:
run['a/b/c/d/e/f/g/h/i/j/k'].fetch()
except MissingFieldException:
to check whether a given field exists.
This has worked in neptune client 0.9.16 but doesn’t work anymore in neptune client 0.11.0 since now the raised exception is AttributeError: No such method 'fetch'
Of course, I can handle a new one but I have a feeling that MissingFieldException was a bit more informative. Or maybe there is even a more natural way to check whether a given path in the tree exists?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
MissingFieldException Class (System) - Microsoft Learn
The MissingFieldException is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.
Read more >MissingFieldException - Kotlin
MissingFieldException is thrown on missing field from all auto-generated serializers and it is recommended to throw this exception from user-defined ...
Read more >Kotlinx Serialization MissingFieldException - Stack Overflow
Specifies whether null values should be encoded for nullable properties and must be present in JSON object during decoding. When this flag is ......
Read more >Type: System.MissingFieldException - GitHub Pages
The MissingFieldException is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.
Read more >MissingFieldException (Groovy 4.0.6)
An exception occurred if a dynamic field dispatch fails with an unknown field. Note that the Missing*Exception classes were named for consistency and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It checks what’s inside the in-memory run structure representation that
neptune-client
uses while running (the same you get fromRun.get_structure()
). It is updated synchronously when user assign metadata (so can be “ahead” of the actual info on server) + rebuilt from server when user initially inits run, or each time they callRun.sync()
.Closing the issue as it was discussed over using other channels.