Skip to content

Commit

Permalink
Fix #783 - Gracefully handle OSError for status page remote query
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Apr 26, 2023
1 parent b4df6f9 commit a49fa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irrd/server/http/status_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _generate_remote_status_info(self, nrtm_host: Optional[str], nrtm_port: int,
NRTM host: {nrtm_host} port {nrtm_port}
Remote status query unsupported or query failed
""")
except (socket.timeout, ConnectionError):
except OSError:
return textwrap.dedent(f"""
NRTM host: {nrtm_host} port {nrtm_port}
Unable to reach remote server for status query
Expand Down

0 comments on commit a49fa41

Please sign in to comment.