Skip to content

Commit e958196

Browse files
committed
refactor: replace 'code' with 'status_code' in changes follower
Signed-off-by: Esteban Laver <[email protected]>
1 parent b4851d4 commit e958196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibmcloudant/features/changes_follower.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _request_callback(self):
197197
self._buffer.put(e)
198198
break
199199
if (
200-
type(e) is ApiException and e.code in [400, 401, 403, 404]
200+
type(e) is ApiException and e.status_code in [400, 401, 403, 404]
201201
or type(e) is StopIteration
202202
):
203203
self.logger.debug('Terminal error.')

0 commit comments

Comments
 (0)