projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cf6bd4
)
Exit with error code 1 when an exception is thrown
author
Frederic Massart
<fred@moodle.com>
Mon, 10 Mar 2014 07:32:09 +0000
(15:32 +0800)
committer
Frederic Massart
<fred@moodle.com>
Mon, 10 Mar 2014 07:32:09 +0000
(15:32 +0800)
mdk.py
patch
|
blob
|
history
diff --git
a/mdk.py
b/mdk.py
index
1fae35e
..
ab8bf45
100755
(executable)
--- a/
mdk.py
+++ b/
mdk.py
@@
-95,3
+95,4
@@
except Exception as e:
info = sys.exc_info()
logging.error('%s: %s', e.__class__.__name__, e)
logging.debug(''.join(traceback.format_tb(info[2])))
+ sys.exit(1)