mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Fix linting errors
This commit is contained in:
parent
15b16583cd
commit
a30ed4725a
3 changed files with 6 additions and 7 deletions
|
@ -25,7 +25,7 @@ DOMAIN_API_MESSAGES = {
|
|||
"invalid": "Enter a domain using only letters,"
|
||||
" numbers, or hyphens (though we don't recommend using hyphens).",
|
||||
"success": "That domain is available!",
|
||||
"error": "Error finding domain availability."
|
||||
"error": "Error finding domain availability.",
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,7 +67,7 @@ def check_domain_available(domain):
|
|||
else:
|
||||
# domain search string doesn't end with .gov, add it on here
|
||||
return Domain.available(domain + ".gov")
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
@ -99,7 +99,7 @@ def available(request, domain=""):
|
|||
return JsonResponse(
|
||||
{"available": False, "message": DOMAIN_API_MESSAGES["unavailable"]}
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
return JsonResponse(
|
||||
{"available": False, "message": DOMAIN_API_MESSAGES["error"]}
|
||||
)
|
||||
{"available": False, "message": DOMAIN_API_MESSAGES["error"]}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue