Skip to content

Commit

Permalink
feat: Add custom error for when Wave app cannot connect to Wave server.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Oct 9, 2023
1 parent e69439d commit f35eb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/h2o_wave/h2o_wave/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async def _register(self):
elapsed_time = current_time - start_time
if elapsed_time.seconds > connection_timeout:
logger.debug(f'Register: giving up after retrying for {connection_timeout} seconds')
raise exception
raise ConnectionError('Could not connect to Wave server. Make sure it is running.') from exception
await asyncio.sleep(1)
logger.debug('Register: retrying...')

Expand Down

0 comments on commit f35eb5d

Please sign in to comment.