mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Minor update
This commit is contained in:
parent
ae3e39a546
commit
6f2b8a1f55
@ -67,15 +67,15 @@ class CatalogInfo(LocaleFileInfoBase):
|
|||||||
with io.open(self.po_path, 'rt', encoding=self.charset) as file_po:
|
with io.open(self.po_path, 'rt', encoding=self.charset) as file_po:
|
||||||
try:
|
try:
|
||||||
po = read_po(file_po, locale)
|
po = read_po(file_po, locale)
|
||||||
except Exception as ex:
|
except Exception as exc:
|
||||||
logger.warning('reading error: %s, %s', self.po_path, ex)
|
logger.warning('reading error: %s, %s', self.po_path, exc)
|
||||||
return
|
return
|
||||||
|
|
||||||
with io.open(self.mo_path, 'wb') as file_mo:
|
with io.open(self.mo_path, 'wb') as file_mo:
|
||||||
try:
|
try:
|
||||||
write_mo(file_mo, po)
|
write_mo(file_mo, po)
|
||||||
except Exception as ex:
|
except Exception as exc:
|
||||||
logger.warning('writing error: %s, %s', self.mo_path, ex)
|
logger.warning('writing error: %s, %s', self.mo_path, exc)
|
||||||
|
|
||||||
|
|
||||||
def find_catalog(docname, compaction):
|
def find_catalog(docname, compaction):
|
||||||
|
Loading…
Reference in New Issue
Block a user