diff --git a/dyndns.py b/dyndns.py index e55f53551e04a79a3da963330167a3d2a3030dd6..4573d8af5e35ef56eab342e18e5196f81d8fdbb4 100644 --- a/dyndns.py +++ b/dyndns.py @@ -72,7 +72,10 @@ def dyndnsRegister(**kwargs): for s in registrationStatuses: if s[1] > 299: allSuccess = False - print(f"Dyndns registration error: {s[0]} was unreachable.") + if s[1] == 600: + print(f"Dyndns registration error: {s[0]} was unreachable.") + else: + print(f"Dyndns registration error: {s[0]} gave HTTP code {s[1]}.") else: allFail = False if allFail: @@ -104,7 +107,10 @@ def dyndnsUpdate(**kwargs): for s in updateStatuses: if s[1] > 299: allSuccess = False - print(f"Dyndns update error: {s[0]} was not reachable.") + if s[1] == 600: + print(f"Dyndns update error: {s[0]} was not reachable.") + else: + print(f"Dyndns update error: {s[0]} gave HTTP code {s[1]}.") else: allFail = False if allFail: