nil user balance fix

This commit is contained in:
Radu Ioan Fericean
2013-08-05 18:06:33 +03:00
parent 5dcbb28dd6
commit e027a2a6a1

View File

@@ -221,6 +221,7 @@ func (at *ActionTiming) Execute() (err error) {
ub, err := storageGetter.GetUserBalance(ubId)
if err != nil {
Logger.Warning(fmt.Sprintf("Could not get user balances for this id: %s. Skipping!", ubId))
return 0, err
}
Logger.Info(fmt.Sprintf("Executing %v on %v", a.ActionType, ub.Id))