def enter_env(self, new_env):
        if self.quantity:
            try:
                existing = [item for item in new_env.inven if item.template == self.template][0]
                existing.quantity += self.quantity
                return
            except __HOLE__:
                pass
        new_env.add_inven(self)
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/model/article.py/Article.enter_env