File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
print (
6
6
'''ddns-py-huawei 启动!
7
7
一款用于华为云的 DDNS 工具。
8
- 版本:1.0.4
8
+ 版本:1.0.5
9
9
作者:bddjr
10
10
仓库:https://github.com/bddjr/ddns-py-huawei
11
11
=============================================='''
@@ -80,7 +80,7 @@ def pip_install(name: str):
80
80
except :
81
81
pip_install ('huaweicloudsdkdns' )
82
82
from huaweicloudsdkdns .v2 .region .dns_region import DnsRegion
83
- from huaweicloudsdkdns .v2 import *
83
+ from huaweicloudsdkdns .v2 import * # type: ignore
84
84
85
85
del pip_install
86
86
@@ -383,7 +383,8 @@ def set_record():
383
383
384
384
if mode == 1 :
385
385
get_ip ()
386
- set_record ()
386
+ if not set_record ():
387
+ exit (1 )
387
388
elif mode == 2 :
388
389
get_ip ()
389
390
update_dns_success = set_record ()
@@ -434,3 +435,4 @@ def set_record():
434
435
435
436
except KeyboardInterrupt :
436
437
print ('\n Ctrl+C' )
438
+ exit (1 )
You can’t perform that action at this time.
0 commit comments