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

Fixes issue #97 to have a clue in the logs when there is a syntax problem and raises Internal Server Error #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ikks
Copy link

@ikks ikks commented Mar 24, 2024

Ease debugging in case of an Internal Server Error due to a case of problematic syntax such as

[[https://www.waze.com/en/live-map/directions/escola-tecnica-pandia-calogeras-r.-62-90-volta-redonda?place=w.207029799.2070297987.1827329|Waze|targethttps://ul.waze.com/ul?preview_venue_id=207029799.2070297987.1827329&navigate=yes&utm_campaign=default&utm_source=waze_website&utm_medium=lm_share_location="_blank"]]

Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, somehow it did not show up in my GH notifications...

parser.format(self.formatter)
try:
parser.format(self.formatter)
except ValueError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, is it only ValueError or do we also want to catch other exceptions here? Could also use Exception.

key = u''
keywords[key] = value
positional = trailing
except ValueError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are trying to catch this for line 1510 only, the except ...: block should be moved to the line below there and the "no exception" other commands into an else: block.

keywords[key] = value
positional = trailing
except ValueError:
logging.error('Poblem %s' item)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants