Skip to content

Instantly share code, notes, and snippets.

@technomancy
Last active December 10, 2016 12:48
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technomancy/0568b638542bc90f32ef to your computer and use it in GitHub Desktop.
Save technomancy/0568b638542bc90f32ef to your computer and use it in GitHub Desktop.
(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