Modify ↓
Opened 15 years ago
Last modified 10 years ago
#5951 new defect
Host down in non-EN locale raises error
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Component: | ServerDownMacro |
Severity: | minor | Keywords: | errno |
Cc: | Trac Release: | 0.11 |
Description
When using ServerDownMacro in a non-EN locale (e.g. de_DE as in my case) the error raised on s.connect
does not contain Connection refused but a localized message.
Attached patch changes error evaluation to rely on errno
instead of message text and it does not use fixed numbers (execpt to 11001 which I could find what kind of error this is exactly).
HTH
Attachments (1)
Change History (2)
Changed 15 years ago by
Attachment: | serverdownmacro.diff added |
---|
comment:1 Changed 10 years ago by
Owner: | Noah Kantrowitz deleted |
---|
Note: See
TracTickets for help on using
tickets.
patch on serverdownmacro/macro.py to use errno for error handling