diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-21 16:03:47 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-03-27 12:10:55 +0100 |
commit | a33276d8da726d7e60908884cb404e56ec907064 (patch) | |
tree | 930e7a7818012aece80d881274402eab25f264d8 /examples | |
parent | 74008c7b859a36f65e7dcaf99275025c9de74e84 (diff) |
Extract exception message in a less arcane way
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-add-patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gbp-add-patch b/examples/gbp-add-patch index 8ecb1d1e..62d35ce3 100755 --- a/examples/gbp-add-patch +++ b/examples/gbp-add-patch @@ -105,7 +105,7 @@ def main(argv): except GitRepositoryError: retval = 1 except GbpError as err: - if len(err.__str__()): + if str(err): print >>sys.stderr, err retval = 1 |