diff --git a/powerdnsadmin/models/record.py b/powerdnsadmin/models/record.py index e9bda92..7cf9007 100644 --- a/powerdnsadmin/models/record.py +++ b/powerdnsadmin/models/record.py @@ -57,7 +57,7 @@ class Record(object): current_app.logger.error( "Cannot fetch domain's record data from remote powerdns api. DETAIL: {0}" .format(e)) - return False + return [] return jdata['rrsets'] diff --git a/powerdnsadmin/routes/admin.py b/powerdnsadmin/routes/admin.py index f81633a..defe591 100644 --- a/powerdnsadmin/routes/admin.py +++ b/powerdnsadmin/routes/admin.py @@ -1,4 +1,3 @@ -import re import json import traceback from ast import literal_eval diff --git a/powerdnsadmin/routes/index.py b/powerdnsadmin/routes/index.py index 812fbe9..8539ef5 100644 --- a/powerdnsadmin/routes/index.py +++ b/powerdnsadmin/routes/index.py @@ -326,7 +326,6 @@ def signin_history(username, authenticator, success): request_ip = request.remote_addr # Write log - str_success = 'succeeded' if success else 'failed' if success: str_success = 'succeeded' current_app.logger.info(