File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 7
7
Bugfixes
8
8
--------
9
9
10
+ * Avoid infinite loop if bootstrap3 can't be loaded (Issue #2402)
11
+
10
12
New in v7.7.11
11
13
==============
12
14
Original file line number Diff line number Diff line change @@ -1110,9 +1110,11 @@ def _get_themes(self):
1110
1110
try :
1111
1111
self ._THEMES = utils .get_theme_chain (self .config ['THEME' ])
1112
1112
except Exception :
1113
- utils .LOGGER .warn ('''Cannot load theme "{0}", using 'bootstrap3' instead.''' .format (self .config ['THEME' ]))
1114
- self .config ['THEME' ] = 'bootstrap3'
1115
- return self ._get_themes ()
1113
+ if self .config ['THEME' ] != 'bootstrap3' :
1114
+ utils .LOGGER .warn ('''Cannot load theme "{0}", using 'bootstrap3' instead.''' .format (self .config ['THEME' ]))
1115
+ self .config ['THEME' ] = 'bootstrap3'
1116
+ return self ._get_themes ()
1117
+ raise
1116
1118
# Check consistency of USE_CDN and the current THEME (Issue #386)
1117
1119
if self .config ['USE_CDN' ] and self .config ['USE_CDN_WARNING' ]:
1118
1120
bootstrap_path = utils .get_asset_path (os .path .join (
You can’t perform that action at this time.
0 commit comments