Skip to content

Commit 121365f

Browse files
authored
Merge pull request #6 from wuddertech/develop
3.2110.0
2 parents 74f344e + bb63d10 commit 121365f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

wudder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
from .wudder import *
55

6-
__version__ = '3.218.0'
6+
__version__ = '3.2110.0'

wudder/client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class WudderClient:
16-
DEFAULT_GRAPHQL_ENDPOINT = 'https://api.pre.wudder.tech/graphql/'
16+
DEFAULT_GRAPHQL_ENDPOINT = 'https://api.dev.wudder.tech/graphql/'
1717

1818
def __init__(self, email: str, password: str, endpoint: str = None):
1919
if endpoint is None:
@@ -132,15 +132,12 @@ def _manage_errors(errors: List):
132132
if errors[0]['code'] == 404:
133133
raise exceptions.NotFoundError(errors[0])
134134

135-
if errors[0]['code'] == 401:
135+
if errors[0]['code'] in [401, 403]:
136136
raise exceptions.AuthError(errors[0])
137137

138138
if errors[0]['code'] == 400:
139139
raise exceptions.BadRequestError(errors[0])
140140

141-
if errors[0]['code'] == 440:
142-
raise exceptions.AuthError(errors[0])
143-
144141
except KeyError:
145142
pass
146143

0 commit comments

Comments
 (0)