Couple of PEP8 issues related to password creation files fixed

This commit is contained in:
VakarisZ 2020-06-25 11:01:20 +03:00
parent 938a5e225c
commit 4e9a749c7d
3 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -40,5 +40,3 @@ class Root(flask_restful.Resource):
ip_addresses=local_ip_addresses(),
mongo=str(mongo.db),
completed_steps=InfectionLifecycle.get_completed_steps())