diff options
| -rwxr-xr-x | beinc_server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/beinc_server.py b/beinc_server.py index 95e6d59..c53f842 100755 --- a/beinc_server.py +++ b/beinc_server.py | |||
| @@ -21,7 +21,6 @@ | |||
| 21 | import argparse | 21 | import argparse |
| 22 | import cgi | 22 | import cgi |
| 23 | import errno | 23 | import errno |
| 24 | import getpass | ||
| 25 | import json | 24 | import json |
| 26 | import logging | 25 | import logging |
| 27 | import os | 26 | import os |
| @@ -88,7 +87,7 @@ def beinc_login_required(method): | |||
| 88 | raise BEINCError401('Password missing') | 87 | raise BEINCError401('Password missing') |
| 89 | try: | 88 | try: |
| 90 | instance = self.server.instances[data.get('resource_name')] | 89 | instance = self.server.instances[data.get('resource_name')] |
| 91 | except Exception as e: | 90 | except Exception: |
| 92 | raise BEINCError401('Wrong instance or password') | 91 | raise BEINCError401('Wrong instance or password') |
| 93 | if not instance.password_match(data.get('password')): | 92 | if not instance.password_match(data.get('password')): |
| 94 | raise BEINCError401('Wrong instance or password') | 93 | raise BEINCError401('Wrong instance or password') |
