Actually I am 100% sure the filter_name is binary (string actually), but it comes from a json, so I don’t want to use String.to_atom() to circumvent potential creation of invalid atoms. I have no problems with errors being raised when there is no atom in system, but the error is raised for valid atoms.
Also UPDATE: I copied modified code from my debug session earlier. Instead of to_atom I am actually using to_existing_atom. With to_atom it works as intended, the problem is with to_existing_atom
@idi527: I’d rather use atoms as map keys, although it’s just a personal preference. But I’ll look more into your code, thanks
I can’t be sure, it comes from the outside. It’s not really something I can control, I have to have “good faith” in the maintainer of the app that’s queering this app of mine. He’s got no malicious intent, though, as he’s a my work colleague.
With Map.fetch! this would fail every time exactly where it should, so I may go with this instead. Thanks