diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-08-13 14:19:11 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-08-13 14:19:11 +0000 |
commit | e6fc0f6c1fbdbcbda4529f4a4d793bd68ac0ab99 (patch) | |
tree | f481d1b67f21bcb8ee82adbaab2791786ebef9b1 /scripts | |
parent | ddbd2d169054eae57b942878bd7689ed98ff80f6 (diff) | |
download | definitions-e6fc0f6c1fbdbcbda4529f4a4d793bd68ac0ab99.tar.gz |
Improve chunk log
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/migrate-chunks | 6 |
1 files 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. |