-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance/errors #33
Enhance/errors #33
Conversation
dmeta/functions.py
Outdated
for file in dir_list: | ||
try: | ||
clear(file) | ||
except DMetaBaseError as e: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you are passing this error?
dmeta/params.py
Outdated
@@ -36,3 +36,8 @@ | |||
"pptx", | |||
"xlsx" | |||
] | |||
NOT_IMPLEMENTED_ERROR = "Removing the meta data of this format is not yet supported by DMeta." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file format is not supported.
dmeta/params.py
Outdated
@@ -36,3 +36,8 @@ | |||
"pptx", | |||
"xlsx" | |||
] | |||
NOT_IMPLEMENTED_ERROR = "Removing the meta data of this format is not yet supported by DMeta." | |||
FILE_FORMAT_DOES_NOT_EXIST_ERROR = "Given file name doesn't have a specific format at the end." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to detect file format. Make sure the file has proper extension (.docx, .pptx, etc.).
dmeta/params.py
Outdated
@@ -36,3 +36,8 @@ | |||
"pptx", | |||
"xlsx" | |||
] | |||
NOT_IMPLEMENTED_ERROR = "Removing the meta data of this format is not yet supported by DMeta." | |||
FILE_FORMAT_DOES_NOT_EXIST_ERROR = "Given file name doesn't have a specific format at the end." | |||
INVALID_CONFIG_FILE_NAME_ERROR = "Given config file name should be str not the other type." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config file name is not a string.
dmeta/params.py
Outdated
FILE_FORMAT_DOES_NOT_EXIST_ERROR = "Given file name doesn't have a specific format at the end." | ||
INVALID_CONFIG_FILE_NAME_ERROR = "Given config file name should be str not the other type." | ||
CONFIG_FILE_DOES_NOT_EXIST_ERROR = "Given config file doesn't exist." | ||
UPDATE_COMMAND_WITH_NO_CONFIG_FILE_ERROR = "when using the `update`/`update-all` command, you should set the .json config file through the --config command" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No config file provided. Set the .json config file with --config command
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Any other comments?