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!")