Skip to content

Commit e9d110b

Browse files
authored
add handling for no given aliases
1 parent a818e3e commit e9d110b

5 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/scripts/build_assets/filehandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_svgs_paths(new_icons: List[dict], icons_folder_path: str) -> List[str]:
6363
try:
6464
aliases = icon_info["aliases"]
6565
except KeyError:
66-
continue
66+
aliases = [] # create empty list of aliases if not provided in devicon.json
6767

6868
for font_version in icon_info["versions"]["font"]:
6969
if is_alias(font_version, aliases):

.github/scripts/icomoon_upload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def main():
4343
print("No files need to be uploaded. Ending script...")
4444
return
4545

46+
# print list of new icons, separated by comma
47+
print("List of new icons:")
48+
print(*new_icons, sep = "\n")
4649
try:
4750
runner = SeleniumRunner(args.icomoon_json_path, args.download_path,
4851
args.geckodriver_path, args.headless)

fonts/devicon.eot

0 Bytes
Binary file not shown.

fonts/devicon.ttf

0 Bytes
Binary file not shown.

fonts/devicon.woff

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)