Skip to content

Commit

Permalink
Fixing ns reload utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Jul 24, 2024
1 parent 45081ec commit 908795d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-inst/flow_storm/ns_reload_utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@

[path]

(when-let [f-url (or (io/resource path) (some-> (io/file path) (.toURL)))]
(when-let [f-url (try
(or (io/resource path) (some-> (io/file path) (.toURL)))
(catch Exception _ nil))]
(let [rdr (string-reader (slurp (io/reader f-url)))]
(read-file rdr f-url))))

Expand Down

0 comments on commit 908795d

Please sign in to comment.