From e6fc0f6c1fbdbcbda4529f4a4d793bd68ac0ab99 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Wed, 13 Aug 2014 14:19:11 +0000 Subject: Improve chunk log --- scripts/migrate-chunks | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks index 92252d3a..64613e18 100755 --- a/scripts/migrate-chunks +++ b/scripts/migrate-chunks @@ -140,9 +140,9 @@ def download_chunks(morph): # unless we shut down the autodetecting system (fallback system). if err.code == 404: print 'WARNING: %s not found in %s.' \ - 'Expected autodetection at build time\n' %(name, repo) + 'Expected autodetection at build time' %(name, repo) except morphlib.morphloader.InvalidFieldError as err: - print "ERROR: %s in chunk %s.\n" % (err, chunk_morph) + print "ERROR: %s in chunk %s." % (err, chunk_morph) if "comments" in str(err): # This error is caused because there are old morphologies which # contain the field "comments" instead of "description". @@ -160,7 +160,7 @@ def download_chunks(morph): loader.save_to_file(chunk['morph'], fixed_chunk) print "Fixing error in %s and moving into %s" %(name, chunk['morph']) except morphlib.morphloader.MorphologyNotYamlError as err: - print "ERROR: %s in chunk %s.\n" % (err, chunk_morph) + print "ERROR: %s in chunk %s." % (err, chunk_morph) # This error is caused because there are old morphologies written # in JSON which contain '\t' characters. When try to load this # kind of morphologies load_from_string fails when parse_morphology_text. -- cgit v1.2.1