Last active
December 10, 2016 12:48
-
-
Save technomancy/0568b638542bc90f32ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 _)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to run this in main so that all namespaces are already loaded.