Skip to content

Instantly share code, notes, and snippets.

@technomancy
Last active December 10, 2016 12:48
(doseq [n (all-ns)
[_ v] (ns-map n)
:when (and (var? v) (fn? @v))]
(alter-var-root v (fn [original]
(fn [& args]
(try (apply original args)
(catch Exception _))))))
@ericnormand
Copy link

Make sure to run this in main so that all namespaces are already loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment