Skip to content

Commit afcef32

Browse files
committed
fix(exception-handling): Catch errors when requesting datafile
1 parent 3e0fa0a commit afcef32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimizely/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def _handle_response(self, response):
325325
"""
326326
try:
327327
response.raise_for_status()
328-
except requests_exceptions.HTTPError as err:
328+
except requests_exceptions.RequestException as err:
329329
self.logger.error('Fetching datafile from {} failed. Error: {}'.format(self.datafile_url, str(err)))
330330
return
331331

0 commit comments

Comments
 (0)