mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Report browser cache load fail as such.
This commit is contained in:
parent
2a4a09f562
commit
6533f1a3c6
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import sys
|
||||
import os
|
||||
import time
|
||||
import traceback
|
||||
|
||||
import gzip
|
||||
import zlib
|
||||
|
|
@ -174,7 +175,11 @@ class BaseBrowserCache(object):
|
|||
## browser_cache is shared between configurations
|
||||
## XXX Needs some locking if multi-threading implemented.
|
||||
if not self.mapping_loaded:
|
||||
self.do_map_cache_keys()
|
||||
try:
|
||||
self.do_map_cache_keys()
|
||||
except Exception as e:
|
||||
logger.debug(traceback.format_exc())
|
||||
raise BrowserCacheException("Browser Cache Failed to Load with error '%s'"%e)
|
||||
return self.key_mapping.get(self.minimal_url(url),(None,None))[0]
|
||||
|
||||
def get_data(self, url):
|
||||
|
|
|
|||
Loading…
Reference in a new issue