Skip to content
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

Merged
merged 12 commits into from
Jul 25, 2024
Merged

Enhance/errors #33

merged 12 commits into from
Jul 25, 2024

Conversation

AHReccese
Copy link
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

@AHReccese AHReccese added the enhancement New feature or request label Jul 23, 2024
@AHReccese AHReccese added this to the DMeta v0.2 milestone Jul 23, 2024
@AHReccese AHReccese self-assigned this Jul 23, 2024
@AHReccese AHReccese marked this pull request as ready for review July 23, 2024 14:54
@AHReccese AHReccese requested a review from sadrasabouri July 23, 2024 14:54
Comment on lines 60 to 64
for file in dir_list:
try:
clear(file)
except DMetaBaseError as e:
pass
Copy link
Member

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."
Copy link
Member

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."
Copy link
Member

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."
Copy link
Member

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"
Copy link
Member

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

@sadrasabouri sadrasabouri merged commit 4c7d883 into dev Jul 25, 2024
42 checks passed
@sadrasabouri sadrasabouri deleted the enhance/errors branch July 25, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants