diff --git a/update-record.py b/update-record.py index ea075e4..dbf4f68 100755 --- a/update-record.py +++ b/update-record.py @@ -66,13 +66,13 @@ # end if if (args.delete): - if (subId < 0): - raise RuntimeError("Can not delete unexisting entry.") - else: + if (subId >= 0): if (verbose): print ("delete id: " + str(subId)) # end if ret = inwx_conn.nameserver.deleteRecord({'id': subId}) + else: + ret = None # end if else: if (subId < 0):