From ca16cfa14715b80a6a41e8bf047eea41fabe7818 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 20 Sep 2014 22:10:58 -0700 Subject: [PATCH] adjust for external API changes --- go/images/orientation.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/go/images/orientation.go b/go/images/orientation.go index a7c126fc1..41ed3f0af 100644 --- a/go/images/orientation.go +++ b/go/images/orientation.go @@ -21,7 +21,10 @@ func FixJpgOrientation(data []byte) (oriented []byte) { } angle := 0 flipMode := FlipDirection(0) - orient := tag.Int(0) + orient, err := tag.Int(0) + if err != nil { + return data + } switch orient { case topLeftSide: // do nothing