Skip to content

Commit

Permalink
improve region grab
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Aug 17, 2023
1 parent e963293 commit 7d635fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/java/src/org/lucee/extension/resource/s3/S3.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.UnknownHostException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Date;
Expand All @@ -31,6 +32,7 @@

import com.amazonaws.AmazonServiceException;
import com.amazonaws.HttpMethod;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.AccessControlList;
import com.amazonaws.services.s3.model.AmazonS3Exception;
Expand Down Expand Up @@ -2425,6 +2427,12 @@ public void run() {
else e1.printStackTrace();
}
}
catch (SdkClientException sce) {
if (!(sce.getCause() instanceof UnknownHostException)) {
throw sce;
}
}

finally {
try {
if (client != null) client.release();
Expand Down

0 comments on commit 7d635fc

Please sign in to comment.