Subversion Repositories SmartDukaan

Rev

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

Rev 19525 Rev 19553
Line 350... Line 350...
350
            try:
350
            try:
351
                response = urllib2.urlopen(userLookupRequest).read()
351
                response = urllib2.urlopen(userLookupRequest).read()
352
                saholicUserId = json.loads(response)['account_key']
352
                saholicUserId = json.loads(response)['account_key']
353
                saholicUserAmountMap[saholicUserId] = value
353
                saholicUserAmountMap[saholicUserId] = value
354
            except:
354
            except:
-
 
355
                traceback.print_exc()
355
                tprint("Could not fetch saholic id for user : " + str(key))
356
                tprint("Could not fetch saholic id for user : " + str(key))
356
                continue
357
                continue
357
        if len(saholicUserAmountMap) > 0:
358
        if len(saholicUserAmountMap) > 0:
358
            batchUpdateMap['userAmount'] = json.dumps(saholicUserAmountMap)
359
            batchUpdateMap['userAmount'] = json.dumps(saholicUserAmountMap)
359
            batchUpdateMap['batchId'] = batchId
360
            batchUpdateMap['batchId'] = batchId