X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/957526bf2b69e8d475a74f139ef30084e944b59e..4ff4fd41a4bae03130a80edde65d9a3f7d3efaf8:/stgit/commands/common.py diff --git a/stgit/commands/common.py b/stgit/commands/common.py index 6193eb0..d18b0b2 100644 --- 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