Skip to content

Commit

Permalink
add catch
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Aug 7, 2024
1 parent f1c2616 commit 107f1a9
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ protected override async void PreInitializeImpl(IExtractCommand request, IDataLo
{
_region = RegionEndpoint.GetBySystemName(AWS_Region);
_s3Helper = new AWSS3(AWS_Profile, _region);
_bucket = await _s3Helper.GetBucket(BucketName);
if (_bucket is null)
{
try
{
_bucket = await _s3Helper.GetBucket(BucketName);
}
catch (Exception) { }
}
OutputFile = Path.Combine(Path.GetTempPath(), $"{GetFilename()}.csv");
_output = request.Configuration != null
? new CSVOutputFormat(OutputFile, request.Configuration.Separator, DateFormat)
Expand Down

0 comments on commit 107f1a9

Please sign in to comment.