File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
33__author__ = """Enver Bisevac"""
44__email__ = "enver.bisevac@harness.io"
5- __version__ = '1.1.11 '
5+ __version__ = '1.1.12 '
Original file line number Diff line number Diff line change @@ -109,7 +109,18 @@ def __next__(self):
109109 self .buf += self .decoder .decode (next_chunk )
110110
111111 except (StopIteration , requests .RequestException , EOFError ) as e :
112- log .error (e )
112+ if isinstance (e , StopIteration ):
113+ log .error ("Error when iterating through stream messages, "
114+ "attempting to resume" )
115+
116+ if isinstance (e , EOFError ):
117+ log .error ("Received unexpected EOF from stream, "
118+ "attempting to reconnect" )
119+
120+ if isinstance (e , requests .RequestException ):
121+ log .error ("Error encountered in stream, "
122+ "attempting to reconnect: %s" , e )
123+
113124 time .sleep (self .retry / 1000.0 )
114125 self ._connect ()
115126
Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 1.1.11
2+ current_version = 1.1.12
33commit = True
44tag = True
55
Original file line number Diff line number Diff line change 5656 test_suite = "tests" ,
5757 tests_require = test_requirements ,
5858 url = "https://github.com/harness/ff-python-server-sdk" ,
59- version = '1.1.11 ' ,
59+ version = '1.1.12 ' ,
6060 zip_safe = False ,
6161)
You can’t perform that action at this time.
0 commit comments