aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/TencentCloudCosService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-22 17:15:06 +0800
committercrupest <crupest@outlook.com>2019-04-22 17:15:06 +0800
commit4249a52c856dcb4a33e8a381076542f563e89ac2 (patch)
treedf8ffa6162d41c748b14c44a76c4859eca529fee /Timeline/Services/TencentCloudCosService.cs
parent45c09ace4acee4df9c860395fb7261adb09bc914 (diff)
downloadtimeline-4249a52c856dcb4a33e8a381076542f563e89ac2.tar.gz
timeline-4249a52c856dcb4a33e8a381076542f563e89ac2.tar.bz2
timeline-4249a52c856dcb4a33e8a381076542f563e89ac2.zip
Fix a bug in cos service. Add avatar api.
Diffstat (limited to 'Timeline/Services/TencentCloudCosService.cs')
-rw-r--r--Timeline/Services/TencentCloudCosService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Timeline/Services/TencentCloudCosService.cs b/Timeline/Services/TencentCloudCosService.cs
index f1f52ec5..bc812e57 100644
--- a/Timeline/Services/TencentCloudCosService.cs
+++ b/Timeline/Services/TencentCloudCosService.cs
@@ -66,6 +66,11 @@ namespace Timeline.Services
}
if (serverException != null)
{
+ if (serverException.statusCode == 404)
+ {
+ t.SetResult(false);
+ return;
+ }
_logger.LogError(serverException, "An server error occured when test cos object existence. Bucket : {} . Key : {} .", bucket, key);
t.SetException(serverException);
return;