mirror of https://gitlab.com/bashrc2/epicyon
Get css from cache
parent
8bddaaf136
commit
a99063bb64
|
@ -166,6 +166,7 @@ from shares import getSharesFeedForPerson
|
||||||
from shares import addShare
|
from shares import addShare
|
||||||
from shares import removeShare
|
from shares import removeShare
|
||||||
from shares import expireShares
|
from shares import expireShares
|
||||||
|
from utils import getCSS
|
||||||
from utils import firstParagraphFromString
|
from utils import firstParagraphFromString
|
||||||
from utils import clearFromPostCaches
|
from utils import clearFromPostCaches
|
||||||
from utils import containsInvalidChars
|
from utils import containsInvalidChars
|
||||||
|
@ -8279,8 +8280,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
tries = 0
|
tries = 0
|
||||||
while tries < 5:
|
while tries < 5:
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as cssfile:
|
css = getCSS(self.server.baseDir, path,
|
||||||
css = cssfile.read()
|
self.server.cssCache)
|
||||||
|
if css:
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in New Issue