diff options
Diffstat (limited to 'beinc_server.py')
| -rwxr-xr-x | beinc_server.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/beinc_server.py b/beinc_server.py index 300c954..8687da3 100755 --- a/beinc_server.py +++ b/beinc_server.py | |||
| @@ -206,12 +206,13 @@ class WebNotifyServer(object): | |||
| 206 | try: | 206 | try: |
| 207 | instance = self.__instances[args[0]] | 207 | instance = self.__instances[args[0]] |
| 208 | except Exception as e: | 208 | except Exception as e: |
| 209 | sys.stderr.write('Wrong instance or password: {0}\n'.format(e)) | 209 | sys.stderr.write('Wrong instance or password\n') |
| 210 | #print('DEBUG: {0}'.format(e)) | ||
| 210 | raise cherrypy.HTTPError('403 Forbidden', | 211 | raise cherrypy.HTTPError('403 Forbidden', |
| 211 | 'Wrong instance or password') | 212 | 'Wrong instance or password') |
| 212 | 213 | ||
| 213 | if not instance.password_match(kwargs.get('password')): | 214 | if not instance.password_match(kwargs.get('password')): |
| 214 | sys.stderr.write('Wrong instance or password: {0}\n'.format(e)) | 215 | sys.stderr.write('Wrong instance or password\n') |
| 215 | raise cherrypy.HTTPError('403 Forbidden', | 216 | raise cherrypy.HTTPError('403 Forbidden', |
| 216 | 'Wrong instance or password') | 217 | 'Wrong instance or password') |
| 217 | 218 | ||
| @@ -282,6 +283,7 @@ def main(): | |||
| 282 | except Exception as e: | 283 | except Exception as e: |
| 283 | sys.stderr.write('Unable to parse {0}: {1}'.format(args.config_file, | 284 | sys.stderr.write('Unable to parse {0}: {1}'.format(args.config_file, |
| 284 | e)) | 285 | e)) |
| 286 | sys.exit(1) | ||
| 285 | 287 | ||
| 286 | cherrypy.config.update({ | 288 | cherrypy.config.update({ |
| 287 | 'server.socket_host': args.hostname, | 289 | 'server.socket_host': args.hostname, |
