summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-21 16:03:47 +0100
committerGuido Günther <agx@sigxcpu.org>2015-03-27 12:10:55 +0100
commita33276d8da726d7e60908884cb404e56ec907064 (patch)
tree930e7a7818012aece80d881274402eab25f264d8 /examples
parent74008c7b859a36f65e7dcaf99275025c9de74e84 (diff)
Extract exception message in a less arcane way
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-add-patch2
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