mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont fail to write the appdata file if there is an error rendering the changelog
This commit is contained in:
parent
0dbebeb2aa
commit
42423d730b
@ -1284,7 +1284,11 @@ def write_appdata(key, entry, base, translators):
|
||||
root.append(E.summary(tp))
|
||||
root[-1].set('{http://www.w3.org/XML/1998/namespace}lang', lang)
|
||||
if entry.get('include-releases', False):
|
||||
try:
|
||||
root.append(make_appdata_releases())
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
with open(fpath, 'wb') as f:
|
||||
f.write(tostring(root, encoding='utf-8', xml_declaration=True, pretty_print=True))
|
||||
return fpath
|
||||
|
Loading…
x
Reference in New Issue
Block a user