branch | 3.5 |
changeset 3153 | 93ce84956679 |
parent 2732 | c28b5f16f3af |
child 3163 | edfe43ceaa35 |
child 3901 | d197c07dcfe5 |
--- a/devtools/__init__.py Wed Sep 09 17:58:09 2009 +0200 +++ b/devtools/__init__.py Wed Sep 09 17:58:47 2009 +0200 @@ -130,7 +130,7 @@ self.set_option('sender-addr', 'cubicweb-test@logilab.fr') try: send_to = '%s@logilab.fr' % os.getlogin() - except OSError: + except (OSError, AttributeError): send_to = '%s@logilab.fr' % (os.environ.get('USER') or os.environ.get('USERNAME') or os.environ.get('LOGNAME'))