示例#1
0
 def get_bill(self, id):
     with self.browser:
         bill = self.browser.get_bill(id)
     if bill:
         return bill
     else:
         raise BillNotFound()
示例#2
0
 def get_bill(self, id):
     bill = self.browser.get_bill(id)
     if not bill:
         raise BillNotFound()
     else:
         return bill
示例#3
0
文件: backend.py 项目: lissyx/weboob
 def get_bill(self, id):
     subscription = self.get_subscription(id.split('-')[0])
     for bill in self.browser.get_bills(subscription):
         if bill.id == id:
             return bill
     raise BillNotFound()