Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Fix excluding IPs #54

Merged
merged 1 commit into from
Jan 26, 2020
Merged

Fix excluding IPs #54

merged 1 commit into from
Jan 26, 2020

Conversation

claytonjn
Copy link
Contributor

Now that everything's in a try block continue doesn't work. Raising an exception was the easiest way to fix the functionality however removing the for loop from the try block and using a separate try block inside the for loop is also an option. Also, noticed a couple typos.

Now that everything's in a try block continue doesn't work. Raising an exception was the easiest way to fix the functionality however removing the for loop from the try block and using a separate try block inside the for loop is also an option. Also, noticed a couple typos.
@ludeeus
Copy link
Contributor

ludeeus commented Jan 26, 2020

Wouldn't this cause it to produce an error?

@claytonjn
Copy link
Contributor Author

claytonjn commented Jan 26, 2020

In the log? You have lines 346-347 to just pass on exception and not log anything so I don't think any errors would be exposed to the user. (EDIT: I should clarify - in my testing I'm not seeing any errors. I'm by no means a python pro but as far as I know there shouldn't be any errors produced due the your exception handling)

Like I said, this was just the easiest fix without changing any of your logic. If you want me to take a different approach that's fine.

@ludeeus ludeeus merged commit 6b9257e into custom-components:master Jan 26, 2020
@claytonjn claytonjn deleted the patch-1 branch January 26, 2020 19:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants