Crashfix
This commit is contained in:
		| @@ -53,6 +53,8 @@ namespace NadekoBot.Modules.Utility.Services | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         private async Task UpdateCurrency(bool shouldLoad) |         private async Task UpdateCurrency(bool shouldLoad) | ||||||
|  |         { | ||||||
|  |             try | ||||||
|             { |             { | ||||||
|                 var unitTypeString = "currency"; |                 var unitTypeString = "currency"; | ||||||
|                 if (shouldLoad) |                 if (shouldLoad) | ||||||
| @@ -79,6 +81,12 @@ namespace NadekoBot.Modules.Utility.Services | |||||||
|                         .StringSet("converter_units", data); |                         .StringSet("converter_units", data); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |             catch (Exception ex) | ||||||
|  |             { | ||||||
|  |                 _log.Warn("Ignore the message below"); | ||||||
|  |                 _log.Warn(ex); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|         public Task Unload() |         public Task Unload() | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user