浏览代码

fix getlink

Nattiden 2 年之前
父节点
当前提交
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 ""