Commit 7e5ef86d authored by emmapeel's avatar emmapeel 🤖
Browse files

give a warning to see if the tests show the problem without failing

parent 9085a9c0
Pipeline #12229 passed with stages
in 3 minutes and 2 seconds
......@@ -20,6 +20,7 @@ Where branchname is the name of the translation branch and transifex component
import sys
import os
import requests
import warnings
import polib
......@@ -60,12 +61,12 @@ def compare_pos(oldpo, newpo):
newstrings, stalestrings = [], []
for entry in newpo:
if entry not in oldpo:
print(F'new string: {entry.msgid}')
warnings.warn(F'new string: {entry.msgid}', UserWarning)
for entry in oldpo:
if entry not in newpo:
print(F'ERROR - stale string: {entry.msgid}')
warnings.warn(F'stale string: {entry.msgid}', UserWarning)
return newstrings, stalestrings
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment