1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-12 01:24:42 +02:00

add handling for no given aliases

This commit is contained in:
Clemens Bastian
2020-09-06 15:44:55 +02:00
committed by GitHub
parent a818e3e41d
commit e9d110bb70
5 changed files with 4 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ def get_svgs_paths(new_icons: List[dict], icons_folder_path: str) -> List[str]:
try:
aliases = icon_info["aliases"]
except KeyError:
continue
aliases = [] # create empty list of aliases if not provided in devicon.json
for font_version in icon_info["versions"]["font"]:
if is_alias(font_version, aliases):

View File

@@ -43,6 +43,9 @@ def main():
print("No files need to be uploaded. Ending script...")
return
# print list of new icons, separated by comma
print("List of new icons:")
print(*new_icons, sep = "\n")
try:
runner = SeleniumRunner(args.icomoon_json_path, args.download_path,
args.geckodriver_path, args.headless)

Binary file not shown.

Binary file not shown.

Binary file not shown.