Skip to content

Commit

Permalink
Clean up get
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrink10 committed Jun 17, 2020
1 parent 335133d commit 3add231
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/basilisp/lang/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from basilisp.lang.reference import ReferenceBase
from basilisp.lang.typing import CompilerOpts, LispNumber
from basilisp.lang.util import OBJECT_DUNDER_METHODS, demunge, is_abstract, munge
from basilisp.logconfig import TRACE
from basilisp.util import Maybe

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -1242,8 +1241,7 @@ def get(m, k, default=None):
"""Return the value of k in m. Return default if k not found in m."""
try:
return m[k]
except (KeyError, IndexError, TypeError) as e:
logger.log(TRACE, "Ignored %s: %s", type(e).__name__, e)
except (KeyError, IndexError):
return default


Expand Down

0 comments on commit 3add231

Please sign in to comment.