Skip to content

Commit 6d4b333

Browse files
committed
fix error checking on get_context
1 parent 96a4ca0 commit 6d4b333

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pymc/model.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,10 @@ class Model(Context):
4848
contexts = []
4949
@staticmethod
5050
def get_context():
51-
return Model.contexts[-1]
52-
"""
5351
try:
5452
return Model.contexts[-1]
5553
except IndexError:
5654
raise TypeError("No model context on context stack")
57-
"""
5855

5956
def __init__(self):
6057
self.vars = []

0 commit comments

Comments
 (0)