~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Track git/stack exceptions when initialising crt_series
[stgit]
/
stgit
/
commands
/
common.py
diff --git
a/stgit/commands/common.py
b/stgit/commands/common.py
index
6193eb0
..
d18b0b2
100644
(file)
--- a/
stgit/commands/common.py
+++ b/
stgit/commands/common.py
@@
-31,7
+31,11
@@
class CmdException(Exception):
# Global variables
-crt_series = stack.Series()
+try:
+ crt_series = stack.Series()
+except (IOError, stack.StackException, git.GitException), err:
+ print >> sys.stderr, err
+ sys.exit(2)
# Utility functions