Skip to content

Commit

Permalink
[4.3.x] Fix #783 - Gracefully handle OSError for status page remote q…
Browse files Browse the repository at this point in the history
…uery (#788)

(cherry picked from commit 572d903)
  • Loading branch information
mxsasha committed Apr 26, 2023
1 parent 8192e93 commit d86add2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions irrd/server/http/status_generator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import socket
import textwrap
from typing import Optional

Expand Down Expand Up @@ -177,7 +176,7 @@ def _generate_remote_status_info(self, nrtm_host: Optional[str], nrtm_port: int,
Remote status query unsupported or query failed
"""
)
except (socket.timeout, ConnectionError):
except OSError:
return textwrap.dedent(
f"""
NRTM host: {nrtm_host} port {nrtm_port}
Expand Down

0 comments on commit d86add2

Please sign in to comment.