mtrudel/bandit

Clearing process dictionary breaks on some keys

Closed this issue · 2 comments

The error is from the to_string/1 on the key which can be term (not just string or atom), and it's getting a tuple
(e.g. {MyApp.Repo, :dynamic_repo}).

if !match?("$" <> _, to_string(key)), do: Process.delete(key)

Oh dang. Patching this directly.