aboutsummaryrefslogtreecommitdiff
path: root/python/core.py
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-15 01:24:43 -0500
committerJoel Martin <github@martintribe.org>2014-04-15 01:24:43 -0500
commit7e9a2883fe5c25a521b1dc37e4c549e1ed508ece (patch)
treeb444224dae6db978d4b5902f2a5b37046ba40d3e /python/core.py
parenta2849f89e7892feee256169398b1d2d82a2b8231 (diff)
downloadmal-7e9a2883fe5c25a521b1dc37e4c549e1ed508ece.tar.gz
mal-7e9a2883fe5c25a521b1dc37e4c549e1ed508ece.zip
All: fix get. All pass stepA tests.
Diffstat (limited to 'python/core.py')
-rw-r--r--python/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/core.py b/python/core.py
index 5e2ef75..8b01b69 100644
--- a/python/core.py
+++ b/python/core.py
@@ -39,7 +39,7 @@ def dissoc(src_hm, *keys):
return hm
def get(hm, key):
- if key in hm:
+ if hm and key in hm:
return hm[key]
else:
return None