Skip to content

Commit e06c917

Browse files
committed
* 解决SO包不要存在或被手动删除时,应直接退出程序
1 parent 9d551b7 commit e06c917

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
### 更新日志
22

33

4-
#### PyLdkV1.1.5 - 2024-05-08
5-
* 需要校验feature id 时,如果传入多个feature id,最后在判断加密狗授权是否正确,中途不在输出日志
4+
#### PyLdkV1.1.6 - 2024-06-11
5+
* 解决SO包不要存在或被手动删除时,应直接退出程序
66
---
77

88

99
<details onclose>
1010
<summary>查看更多更新日志</summary>
1111

12+
#### PyLdkV1.1.5 - 2024-05-08
13+
* 需要校验feature id 时,如果传入多个feature id,最后在判断加密狗授权是否正确,中途不在输出日志
14+
---
15+
16+
1217
#### PyLdkV1.1.4 - 2023-05-08
1318
* 初始化的时候就需要校验feature id 是否存在
1419
---

pyldk/pyldk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ def __init__(self,JadeLog=None):
1919

2020
else:
2121
libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib/{}/{}'.format(getOperationSystem(),self.get_system_arch())))
22-
self.adapter = BaseAdapter(os.path.join(libs_dir,os.listdir(libs_dir)[0]),JadeLog)
22+
try:
23+
self.adapter = BaseAdapter(os.path.join(libs_dir,os.listdir(libs_dir)[0]),JadeLog)
24+
except:
25+
Exit(-1)
2326

2427
def get_system_arch(self):
2528
return (platform.uname().processor)

0 commit comments

Comments
 (0)