Skip to content

Commit

Permalink
#47: warn if dimensions cannot be established.
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-brooke committed Feb 11, 2020
1 parent d2e2016 commit b191f40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/smeagol/extensions/photoswipe.clj
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@
(catch Exception x (.getMessage x)))]
(if dimensions
(assoc slide :w (first dimensions) :h (nth dimensions 1))
slide)))
(do
(log/warn "Failed to fetch dimensions of image " url)
slide))))

;; (slide-merge-dimensions
;; {:title "Frost on a gate, Laurieston",
Expand Down

0 comments on commit b191f40

Please sign in to comment.