Skip to content

Commit d5b733a

Browse files
committed
Replaced specific exception handlers with the common one during FF requests
1 parent 31298ce commit d5b733a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Agent.Listener/Configuration/FeatureFlagProvider.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,11 @@ public async Task<FeatureFlag> GetFeatureFlagWithCred(IHostContext context, stri
6161
{
6262
return await client.GetFeatureFlagByNameAsync(featureFlagName, checkFeatureExists: false, ctk);
6363
}
64-
catch (VssServiceException e)
64+
catch (Exception e)
6565
{
6666
Trace.Warning("Unable to retrieve feature flag status: " + e.ToString());
6767
return new FeatureFlag(featureFlagName, "", "", "Off", "Off");
6868
}
69-
catch (VssUnauthorizedException e)
70-
{
71-
Trace.Warning("Unable to retrieve feature flag with following exception: " + e.ToString());
72-
return new FeatureFlag(featureFlagName, "", "", "Off", "Off");
73-
}
74-
catch (TimeoutException e)
75-
{
76-
Trace.Warning("Unable to retrieve feature flag status due to timeout error: " + e.ToString());
77-
return new FeatureFlag(featureFlagName, "", "", "Off", "Off");
78-
}
7969
}
8070
}
8171
}

0 commit comments

Comments
 (0)