Skip to content

Commit 9a07494

Browse files
author
Chang She
committed
DOC: fixed bug in auto_dev_build in docs make.py
1 parent e83a29f commit 9a07494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/make.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def auto_dev_build(debug=False):
105105
html()
106106
step = 'upload dev'
107107
upload_dev()
108-
if not debug():
108+
if not debug:
109109
sendmail(step)
110110

111111
step = 'latex'
@@ -115,8 +115,8 @@ def auto_dev_build(debug=False):
115115
if not debug:
116116
sendmail(step)
117117
except (Exception, SystemExit), inst:
118-
msg += str(inst) + '\n'
119-
sendmail(step, msg)
118+
msg = str(inst) + '\n'
119+
sendmail(step, '[ERROR] ' + msg)
120120

121121
def sendmail(step=None, err_msg=None):
122122
from_name, to_name = _get_config()

0 commit comments

Comments
 (0)