Fixed crash

This commit is contained in:
Kwoth 2016-10-14 23:18:07 +02:00
parent c46fd50c12
commit dacfc1f8ea

View File

@ -66,6 +66,7 @@ namespace NadekoBot.Modules.Utility
}
public async Task UpdateCurrency()
{try
{
var currencyRates = await UpdateCurrencyRates();
var unitTypeString = "currency";
@ -96,6 +97,10 @@ namespace NadekoBot.Modules.Utility
Units.AddRange(range);
_log.Info("Updated Currency");
}
catch {
_log.Warn("Failed updating currency.");
}
}
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ConvertList(IUserMessage msg)