Nattiden 2 سال پیش
والد
کامیت
7d563465bb
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 1
      .gitignore
  2. 2 1
      Modules/GetLink.py

+ 2 - 1
.gitignore

@@ -3,4 +3,5 @@
 /Cache
 /Cache
 */Private
 */Private
 __pycache__
 __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()
         raise KeyError()
     if link_type == 'Official' and name not in data:
     if link_type == 'Official' and name not in data:
         return gen_official_link(name)
         return gen_official_link(name)
-    return data[name]
+    result = data.get(name)
+    return result if result else ""