Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
4f485b9b
Commit
4f485b9b
authored
Oct 03, 2012
by
Tiago Peixoto
Browse files
Fix bug in __getitem__ in PropertyDict
parent
11dbcdf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
4f485b9b
...
@@ -861,6 +861,7 @@ class PropertyDict(dict):
...
@@ -861,6 +861,7 @@ class PropertyDict(dict):
if
self
.
get_func
!=
None
:
if
self
.
get_func
!=
None
:
val
=
self
.
get_func
(
self
.
g
,
key
)
val
=
self
.
get_func
(
self
.
g
,
key
)
dict
.
__setitem__
(
self
,
key
,
val
)
dict
.
__setitem__
(
self
,
key
,
val
)
return
val
else
:
else
:
raise
KeyError
(
"Property dict cannot be gotten"
)
raise
KeyError
(
"Property dict cannot be gotten"
)
...
...
Write
Preview
Supports
Markdown
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