Subversion Repositories SmartDukaan

Rev

Rev 14436 | Rev 14822 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14436 Rev 14796
Line 15... Line 15...
15
        try:
15
        try:
16
            pricing_info = FetchLivePrices.getLatestPrice(skuBundleId, source_id)
16
            pricing_info = FetchLivePrices.getLatestPrice(skuBundleId, source_id)
17
            if len(pricing_info) == 0:
17
            if len(pricing_info) == 0:
18
                raise
18
                raise
19
            return [to_t_livePricing(pricing) for pricing in pricing_info]
19
            return [to_t_livePricing(pricing) for pricing in pricing_info]
20
        except:
20
        except Exception as e:
-
 
21
            print "Dtr handler exception ",e
21
            return [to_t_livePricing(pricing) for pricing in [{}]]
22
            return [to_t_livePricing(pricing) for pricing in [{}]]
22
            
23
            
23
                   
24
                   
24
if __name__ == '__main__':
25
if __name__ == '__main__':
25
    dt  = DtrServiceHandler()
26
    dt  = DtrServiceHandler()