diff options
| author | Michael Stapelberg | 2016-01-22 00:39:55 -0800 | 
|---|---|---|
| committer | Michael Stapelberg | 2016-01-22 00:39:55 -0800 | 
| commit | cc55b44f8074e02bb8e0cc0cd5764c579011a9fc (patch) | |
| tree | 0b01e26b0f92d73ea0a79d2bb0a3fa8febca7358 | |
| parent | Merge pull request #96 from bebehei/symbols-battery (diff) | |
| parent | check_mail.py: more detailed report on IOError (diff) | |
Merge pull request #100 from czarkoff/mail-python
check_mail.py: more detailed report on IOError
| -rwxr-xr-x | contrib/check_mail.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/contrib/check_mail.py b/contrib/check_mail.py index 14d2e82..ac23f77 100755 --- a/contrib/check_mail.py +++ b/contrib/check_mail.py @@ -82,6 +82,9 @@ def check_mail(label, nomail, ignore, colors):              else:                  return nomail, colors[0] +        except IOError, exception: +            return '{0}: {1}'.format(name, exception.strerror), colors[2] +          except:              pass | 
