summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/app_factory.py5
-rw-r--r--service/pixelated/config/register.py3
2 files changed, 0 insertions, 8 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py
index 51f76741..96412386 100644
--- a/service/pixelated/config/app_factory.py
+++ b/service/pixelated/config/app_factory.py
@@ -31,7 +31,6 @@ from pixelated.adapter.search import SearchEngine
from pixelated.adapter.services.draft_service import DraftService
from pixelated.adapter.listeners.mailbox_indexer_listener import MailboxIndexerListener
import pixelated.bitmask_libraries.session as LeapSession
-from pixelated.bitmask_libraries.leap_srp import LeapAuthException
from requests.exceptions import ConnectionError
from leap.common.events import (
register,
@@ -70,10 +69,6 @@ def init_leap_session(app, leap_home):
print("Can't connect to the requested provider", error)
reactor.stop()
sys.exit(1)
- except LeapAuthException, e:
- print("Couldn't authenticate with the credentials provided %s" % e.message)
- reactor.stop()
- sys.exit(1)
return leap_session
diff --git a/service/pixelated/config/register.py b/service/pixelated/config/register.py
index d54b10ff..8a7caa8b 100644
--- a/service/pixelated/config/register.py
+++ b/service/pixelated/config/register.py
@@ -15,7 +15,6 @@
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import re
-from pixelated.bitmask_libraries.leap_srp import LeapAuthException
from pixelated.bitmask_libraries.register import register_new_user
@@ -23,8 +22,6 @@ def register(username, server_name):
try:
validate_username(username)
register_new_user(username, server_name)
- except LeapAuthException:
- print('User already exists')
except ValueError:
print('Only lowercase letters, digits, . - and _ allowed.')