Skip to content

Commit

Permalink
requested changes applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Jun 18, 2023
1 parent 1fb7070 commit 3eeb4eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nava/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import shlex

from .params import OVERVIEW, SOUND_FILE_PLAY_ERROR, SOUND_FILE_EXIST_ERROR, SOUND_FILE_PATH_TYPE_ERROR, SOUND_FILE_PATH_NOT_GIVEN
from .params import OVERVIEW, SOUND_FILE_PLAY_ERROR, SOUND_FILE_EXIST_ERROR, SOUND_FILE_PATH_TYPE_ERROR, SOUND_FILE_PATH_PARAM_ERROR
from .errors import NavaBaseError


Expand Down Expand Up @@ -110,7 +110,7 @@ def inner_function(*args, **kwargs):
elif len(args) >= 1:
sound_path = args[0]
else:
raise NavaBaseError(SOUND_FILE_PATH_NOT_GIVEN)
raise NavaBaseError(SOUND_FILE_PATH_PARAM_ERROR )

if not isinstance(sound_path, str):
raise NavaBaseError(SOUND_FILE_PATH_TYPE_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion nava/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
SOUND_FILE_PLAY_ERROR = "Sound can not play due to some issues."
SOUND_FILE_EXIST_ERROR = "Given sound file doesn't exist."
SOUND_FILE_PATH_TYPE_ERROR = "Sound file's path should be a string."
SOUND_FILE_PATH_NOT_GIVEN = "There isn't any sound file path given to the play function."
SOUND_FILE_PATH_PARAM_ERROR = "There isn't any sound file path given to the play function."

0 comments on commit 3eeb4eb

Please sign in to comment.