From 4e27f7bb13f041b81ef6b180dcbdd0979c6619ee Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 10 Jul 2016 11:01:35 +0200 Subject: [PATCH] python 2.7 fix for example 5 --- example/example5.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/example5.py b/example/example5.py index 2526042b6..674174a16 100755 --- a/example/example5.py +++ b/example/example5.py @@ -77,7 +77,8 @@ try: test_dummy_function(lambda x, y: x + y) print("Problem!") except Exception as e: - if 'missing 1 required positional argument' in str(e): + if 'missing 1 required positional argument' in str(e) or \ + 'takes exactly 2 arguments' in str(e): print("All OK!") else: print("Problem!")