diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index a62f926097..7ece487cf7 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -42,10 +42,14 @@ export default class HTMLExporter extends Exporter { const avatarUrl = Avatar.avatarUrlForRoom(this.room, 32, 32, "crop"); const avatarPath = "room.png"; if (avatarUrl) { - const image = await fetch(avatarUrl); - blob = await image.blob(); - this.totalSize += blob.size; - this.addFile(avatarPath, blob); + try { + const image = await fetch(avatarUrl); + blob = await image.blob(); + this.totalSize += blob.size; + this.addFile(avatarPath, blob); + } catch (err) { + console.log("Failed to fetch room's avatar" + err); + } } const avatar = (