-
Notifications
You must be signed in to change notification settings - Fork 5
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
Module crashes when new_route.source string has remarks appended to it #3
Comments
Thanks for letting me know. Can you point me to a query/resource that originally triggers this error? I tried with the one that I see in your trace |
That is the query that causes the problem for us, and it happens every time. Very interesting! If it matters, I'm running this from a Macbook Pro, so Mac OSX. I wonder if we're running different versions of the dependencies than you are. I'm running v1.2.0 of |
We think the problem might be with
|
@vajra77 I think we've shown this problem exists in |
1 similar comment
@vajra77 I think we've shown this problem exists in |
If you're interested, I submitted an issue for the It appears to be a problem with a regular expression. |
Hi, thanks for submitting the |
Excellent! Thank you so much for your help. |
Occasionally,
new_route.source
will have multi-line output in it that includes remarks appended. Here's an example of what I mean:When that happens, we get the following traceback:
The exception is in
irr_scan.py
in a function that checks to see if the source exists inself._source_weight.keys()
. I was looking through the code to see where the source info is originally acquired. It appears to be in theexpand_as
function inwhois_proxy.py
.Perhaps one solution is to check to see if there is whitespace in the source string and, if so, split it into a list and then take the first element. I was able to get a working solution using that method directly in
irr_scan.py
just as a test, but I don't think doing it there was very clean and I just did it as a test to verify that it solved this particular problem.The text was updated successfully, but these errors were encountered: