[Pkg-isocodes-devel] [iso-codes] 02/14: if file not exist, don't crash
LI Daobing
lidaobing at moszumanska.debian.org
Thu May 1 05:47:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
lidaobing pushed a commit to branch master
in repository iso-codes.
commit 23528b4387f81405c2c964ea7014832776f7add6
Author: LI Daobing <lidaobing at gmail.com>
Date: Thu May 1 13:36:17 2014 +0800
if file not exist, don't crash
---
iso-codes-merge.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/iso-codes-merge.py b/iso-codes-merge.py
index 909f389..9054421 100755
--- a/iso-codes-merge.py
+++ b/iso-codes-merge.py
@@ -104,7 +104,10 @@ class Isocodes(object):
def _msgfmt(self, fname):
logging.info(fname)
- subprocess.check_call(['msgfmt', '-v', fname])
+ if not os.path.exists(fname):
+ logging.info('Not Exist')
+ else:
+ subprocess.check_call(['msgfmt', '-v', fname])
def _msgcanonicalformat(self, fname, domain):
logging.info(fname)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-isocodes/iso-codes.git
More information about the Pkg-isocodes-devel
mailing list