Browse Source

Removed unused code, added space after comma

rune 1 month ago
parent
commit
7ac8ba3432
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      py-dyndns.py

+ 1
- 3
py-dyndns.py View File

@@ -100,16 +100,14 @@ def addnewdomin(newdata):
100 100
     if response is not 'Fail':
101 101
         logging.info('Success! Domain %s updated with ID: %s', newdata['add'][0], response['domain_record']['id'])
102 102
         domainid = str(response['domain_record']['id'])
103
-        print(newdata['add'][0])
104 103
         section = str(newdata['add'][0])
105 104
         section = section.strip("[']")
106
-        print(section)
107 105
         config[section] = {
108 106
             'subdomainid': str(domainid)
109 107
             }
110 108
         with open('config.ini', 'w') as f:
111 109
             config.write(f)
112
-            print('Domain ' + str(section) + ' added with ID ' + str(domainid) + 'and config.ini updated!')
110
+            print('Domain ' + str(section) + ' added with ID ' + str(domainid) + ' and config.ini updated!')
113 111
     else:
114 112
         print('ERROR! Domain not added!')
115 113
 

Loading…
Cancel
Save