mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-28 14:05:41 +00:00
LGTM fixes
This commit is contained in:
parent
f5b88ebc73
commit
3e961d7b21
@ -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']
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import re
|
||||
import json
|
||||
import traceback
|
||||
from ast import literal_eval
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user