Skip to content

Commit a900057

Browse files
committed
Fixed bad gateway error with parking position when car is driving
1 parent 3636064 commit a900057

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
## [Unreleased]
66
- No unreleased changes so far
77

8+
## [0.19.2] - 2021-08-20
9+
### Fixed
10+
- Fixed bad gateway error with parking position when car is driving
11+
812
## [0.19.1] - 2021-08-19
913
### Fixed
1014
- Catching timeout error
@@ -227,7 +231,8 @@ Minor fix in observer interface
227231
## [0.1.0] - 2021-05-26
228232
Initial release
229233

230-
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.19.1...HEAD
234+
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.19.2...HEAD
235+
[0.19.2]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.19.2
231236
[0.19.1]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.19.1
232237
[0.19.0]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.19.0
233238
[0.18.3]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.18.3

weconnect/elements/vehicle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def updateStatus(self, updateCapabilities=True, force=False): # noqa: C901 # py
308308
f' Status Code was: {statusResponse.status_code}')
309309
elif statusResponse.status_code == requests.codes['bad_request'] \
310310
or statusResponse.status_code == requests.codes['no_content'] \
311-
or statusResponse.status_code == requests.codes['not_found']:
311+
or statusResponse.status_code == requests.codes['not_found'] \
312+
or statusResponse.status_code == requests.codes['bad_gateway']:
312313
data = None
313314
else:
314315
raise RetrievalError(f'Could not retrieve data. Status Code was: {statusResponse.status_code}')

0 commit comments

Comments
 (0)