Skip to content

Commit e37a58b

Browse files
authored
Merge pull request #328 from simvue-io/hotfix/fix-premature-token-check
Check token after initialising subclass
2 parents 2e4a81d + 6d5306c commit e37a58b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simvue/factory/proxy/remote.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def __init__(
2222
self, name: typing.Optional[str], uniq_id: str, suppress_errors: bool = True
2323
) -> None:
2424
self._url, self._token = get_auth()
25-
self.check_token()
2625

2726
self._headers: dict[str, str] = {
2827
"Authorization": f"Bearer {self._token}",
@@ -32,6 +31,8 @@ def __init__(
3231
"Content-Type": "application/msgpack"
3332
}
3433
super().__init__(name, uniq_id, suppress_errors)
34+
self.check_token()
35+
3536
self._id = uniq_id
3637

3738
@skip_if_failed("_aborted", "_suppress_errors", (None, None))

0 commit comments

Comments
 (0)