fix: impose file path check for launch_music and resume, fixed #77

This commit is contained in:
Terry Geng
2020-02-26 16:57:56 +08:00
parent 78b11d1fb5
commit 9ce98196a1
4 changed files with 59 additions and 30 deletions

View File

@ -13,7 +13,7 @@ def strings(option, *argv, **kwargs):
return formatted
except KeyError as e:
raise KeyError(
"Missed placeholder {{{placeholder}}} in string '{string}'. ".format(placeholder=str(e).strip("'"), string=option) +
"Missed/Unexpected placeholder {{{placeholder}}} in string '{string}'. ".format(placeholder=str(e).strip("'"), string=option) +
"Please restore you configuration file back to default if necessary.")
except TypeError as e:
raise KeyError(