Modify

Opened 5 years ago

#5951 new defect

Host down in non-EN locale raises error

Reported by: anonymous Owned by: coderanger
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)

serverdownmacro.diff (892 bytes) - added by anonymous 5 years ago.
patch on serverdownmacro/macro.py to use errno for error handling

Download all attachments as: .zip

Change History (1)

Changed 5 years ago by anonymous

patch on serverdownmacro/macro.py to use errno for error handling

Add Comment

Modify Ticket

Action
as new The owner will remain coderanger.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.