Modify

Opened 15 years ago

Last modified 9 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)

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

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by anonymous

Attachment: serverdownmacro.diff added

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

comment:1 Changed 9 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.