Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
4e27f7bb
Commit
4e27f7bb
authored
Jul 10, 2016
by
Wenzel Jakob
Browse files
python 2.7 fix for example 5
parent
e6b2f759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
example/example5.py
example/example5.py
+2
-1
No files found.
example/example5.py
View file @
4e27f7bb
...
@@ -77,7 +77,8 @@ try:
...
@@ -77,7 +77,8 @@ try:
test_dummy_function
(
lambda
x
,
y
:
x
+
y
)
test_dummy_function
(
lambda
x
,
y
:
x
+
y
)
print
(
"Problem!"
)
print
(
"Problem!"
)
except
Exception
as
e
:
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!"
)
print
(
"All OK!"
)
else
:
else
:
print
(
"Problem!"
)
print
(
"Problem!"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment