diff options
| author | Simeon Simeonov | 2020-12-04 12:28:52 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2020-12-04 12:28:52 +0100 |
| commit | 1b9cb7758519abd11c676c81c421416cf3195fb0 (patch) | |
| tree | 26c3902fb46cf873913732a143c61c79775895ab | |
| parent | 54acd3738d5f1101c90a531b85b21659f9f5867d (diff) | |
Give None as the Exception cause
| -rwxr-xr-x | beinc_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/beinc_server.py b/beinc_server.py index 0f6c248..9dde418 100755 --- a/beinc_server.py +++ b/beinc_server.py | |||
| @@ -80,7 +80,7 @@ def beinc_login_required(method): | |||
| 80 | try: | 80 | try: |
| 81 | instance = self.server.instances[data.get('resource_name')] | 81 | instance = self.server.instances[data.get('resource_name')] |
| 82 | except Exception: | 82 | except Exception: |
| 83 | raise BEINCError401('Wrong instance or password') | 83 | raise BEINCError401('Wrong instance or password') from None |
| 84 | if not instance.password_match(data.get('password')): | 84 | if not instance.password_match(data.get('password')): |
| 85 | raise BEINCError401('Wrong instance or password') | 85 | raise BEINCError401('Wrong instance or password') |
| 86 | return method(self, data, *arg, **kwargs) | 86 | return method(self, data, *arg, **kwargs) |
