Fixed crash
This commit is contained in:
parent
c46fd50c12
commit
dacfc1f8ea
@ -66,6 +66,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async Task UpdateCurrency()
|
public async Task UpdateCurrency()
|
||||||
|
{try
|
||||||
{
|
{
|
||||||
var currencyRates = await UpdateCurrencyRates();
|
var currencyRates = await UpdateCurrencyRates();
|
||||||
var unitTypeString = "currency";
|
var unitTypeString = "currency";
|
||||||
@ -96,6 +97,10 @@ namespace NadekoBot.Modules.Utility
|
|||||||
Units.AddRange(range);
|
Units.AddRange(range);
|
||||||
_log.Info("Updated Currency");
|
_log.Info("Updated Currency");
|
||||||
}
|
}
|
||||||
|
catch {
|
||||||
|
_log.Warn("Failed updating currency.");
|
||||||
|
}
|
||||||
|
}
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
public async Task ConvertList(IUserMessage msg)
|
public async Task ConvertList(IUserMessage msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user