-
Notifications
You must be signed in to change notification settings - Fork 278
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
Fixed changing location for show. #5795
Conversation
p0psicles
commented
Nov 28, 2018
•
edited
Loading
edited
- PR is based on the DEVELOP branch
- Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
- Read the contribution guide
DeepCode analyzed this pull request. Click to see more details. |
medusa/tv/series.py
Outdated
@@ -1681,6 +1716,7 @@ def delete_show(self, full=False): | |||
# remove entire show folder | |||
if full: | |||
try: | |||
_ = self.validate_location # Let's get the exception out of the way asap. |
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.
I don't understand the need of this line.
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.
self.location does now by default all kind of checks on the filesystem. So if we use it in the apiv2, it will also do those checks there. In stead of having the option to just get the self.location (without any checks) and one optional that does the validations.
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.
ow wait, this line.. Pff i have to dig for that
@@ -1681,6 +1716,7 @@ def delete_show(self, full=False): | |||
# remove entire show folder | |||
if full: | |||
try: | |||
_ = self.validate_location # Let's get the exception out of the way asap. | |||
log.info(u'{id}: Attempt to {action} show folder {location}', |
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.
Okay, see how here self.location was included in the log. Which previously meant, that this could raise an exception. Just from the info log.
link 1701 self.location was also used. Another place where the exception could have been raised. self.location is now (what was previously self.raw_location), i'm using self.location where it makes sense. But to keep the possibiliy the exception is raised, i put it in line 1719
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.
I see what you are going for now.
DeepCode analyzed this pull request. |