[Feature] Fix ArgumentException: Illegal characters in path (#171)

This commit is contained in:
Markus Hofknecht 2021-05-14 12:16:09 +02:00
parent 4fefc4f253
commit 7bac914f51
2 changed files with 4 additions and 3 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.17.41")] [assembly: AssemblyVersion("1.0.17.42")]
[assembly: AssemblyFileVersion("1.0.17.41")] [assembly: AssemblyFileVersion("1.0.17.42")]

View file

@ -77,7 +77,8 @@ namespace SystemTrayMenu.Utilities
catch (Exception ex) catch (Exception ex)
{ {
if (ex is UnauthorizedAccessException || if (ex is UnauthorizedAccessException ||
ex is IOException) ex is IOException ||
ex is ArgumentException)
{ {
Log.Warn($"path:'{path}'", ex); Log.Warn($"path:'{path}'", ex);
} }