Nattiden 2 лет назад
Родитель
Сommit
7d563465bb
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 1
      .gitignore
  2. 2 1
      Modules/GetLink.py

+ 2 - 1
.gitignore

@@ -3,4 +3,5 @@
 /Cache
 */Private
 __pycache__
-.DS_Store
+.DS_Store
+Log

+ 2 - 1
Modules/GetLink.py

@@ -34,4 +34,5 @@ def get_link(link_type,link_key=None,**kwargs):
         raise KeyError()
     if link_type == 'Official' and name not in data:
         return gen_official_link(name)
-    return data[name]
+    result = data.get(name)
+    return result if result else ""