forked from p15670423/monkey
Couple of PEP8 issues related to password creation files fixed
This commit is contained in:
parent
938a5e225c
commit
4e9a749c7d
|
@ -3,11 +3,10 @@ import logging
|
|||
import os
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from datetime import timedelta
|
||||
import json
|
||||
|
||||
__author__ = 'itay.mizeretz'
|
||||
|
||||
from common.utils.exceptions import InvalidRegistrationCredentialsError, RegistrationNotNeededError, \
|
||||
from common.utils.exceptions import InvalidRegistrationCredentialsError, \
|
||||
CredentialsNotRequiredError, AlreadyRegisteredError
|
||||
from monkey_island.cc.environment.environment_config import EnvironmentConfig
|
||||
from monkey_island.cc.environment.user_creds import UserCreds
|
||||
|
|
|
@ -17,4 +17,3 @@ class Registration(flask_restful.Resource):
|
|||
return make_response({"error": ""}, 200)
|
||||
except (InvalidRegistrationCredentialsError, RegistrationNotNeededError) as e:
|
||||
return make_response({"error": str(e)}, 400)
|
||||
|
||||
|
|
|
@ -40,5 +40,3 @@ class Root(flask_restful.Resource):
|
|||
ip_addresses=local_ip_addresses(),
|
||||
mongo=str(mongo.db),
|
||||
completed_steps=InfectionLifecycle.get_completed_steps())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue