diff --git a/scripts/ci/test_twemoji_mapping.py b/scripts/ci/test_twemoji_mapping.py index 0b9363c4d..231bac277 100644 --- a/scripts/ci/test_twemoji_mapping.py +++ b/scripts/ci/test_twemoji_mapping.py @@ -49,6 +49,10 @@ start = time.perf_counter() +print("Fetching emoji mapping") +with urllib.request.urlopen(DISCORD_EMOJI_MAPPING_URL) as request: + mapping = json.loads(request.read())["emojiDefinitions"] + has_items = next(tempdir.iterdir(), False) if has_items: print("Updating twemoji collection") @@ -57,10 +61,6 @@ print("Cloning twemoji collection") subprocess.check_call(f"git clone {TWEMOJI_REPO_BASE_URL} {tempdir} --depth=1", shell=True) -print("Fetching emoji mapping") -with urllib.request.urlopen(DISCORD_EMOJI_MAPPING_URL) as request: - mapping = json.loads(request.read())["emojiDefinitions"] - assets_path = tempdir / "assets" / "72x72" invalid_emojis = []