Skip to content

Commit

Permalink
handle missing change log
Browse files Browse the repository at this point in the history
  • Loading branch information
neffo committed Sep 29, 2024
1 parent f5612a3 commit 2ce8670
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ export function fetch_change_log(version, label, httpSession) {
httpSession.send_and_read_async(request, GLib.PRIORITY_DEFAULT, null, (httpSession, message) => {
let data = decoder.decode(httpSession.send_and_read_finish(message).get_data());
let text = JSON.parse(data).body;
label.set_label(text);
if (text)
label.set_label(text);
});
}
else {
httpSession.queue_message(request, (httpSession, message) => {
let data = message.response_body.data;
let text = JSON.parse(data).body;
label.set_label(text);
if (text)
label.set_label(text);
});
}
}
Expand Down

0 comments on commit 2ce8670

Please sign in to comment.