We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d663d11 commit 5fc1df3Copy full SHA for 5fc1df3
src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
@@ -707,6 +707,11 @@ async function setupAnnouncementBanner() {
707
708
try {
709
const response = await fetch(pstAnnouncementUrl);
710
+ if (!response.ok) {
711
+ throw new Error(
712
+ `[PST]: HTTP response status not ok: ${response.status} ${response.statusText}`,
713
+ );
714
+ }
715
const data = await response.text();
716
if (data.length === 0) {
717
console.log(`[PST]: Empty announcement at: ${pstAnnouncementUrl}`);
0 commit comments