forked from solderpunk/AV-98
fixes a crash with some invalid URLs
This commit is contained in:
parent
010288a6fb
commit
924eed3775
|
@ -15,6 +15,7 @@ Changes since beta1
|
|||
- fixes a crash with RSS feeds without <link> element
|
||||
- fixes a bug in HTML renderer where some hX element were not closed properly
|
||||
- fixes input in Gemini while online
|
||||
- fixes a crash with invalid URL
|
||||
- attempt at hiding XMLparsedAsHTMLWarning from BS4 library
|
||||
- chafa now used by default everywhere if version > 1.10
|
||||
- ignoring encoding error in ansicat
|
||||
|
|
|
@ -268,7 +268,7 @@ def set_error(url,err):
|
|||
cache = get_cache_path(url)
|
||||
if is_cache_valid(url):
|
||||
os.utime(cache)
|
||||
else:
|
||||
elif cache:
|
||||
cache_dir = os.path.dirname(cache)
|
||||
root_dir = cache_dir
|
||||
while not os.path.exists(root_dir):
|
||||
|
|
Loading…
Reference in New Issue