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

Tratar exceção *packtools.exceptions.XMLDoctypeError* #1266

Closed
gustavofonseca opened this issue Mar 15, 2016 · 0 comments
Closed

Tratar exceção *packtools.exceptions.XMLDoctypeError* #1266

gustavofonseca opened this issue Mar 15, 2016 · 0 comments

Comments

@gustavofonseca
Copy link
Collaborator

Traceback (most recent call last):

  File "/var/www/.virtualenvs/scielomanager/lib/python2.7/site-packages/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/var/www/.virtualenvs/scielomanager/lib/python2.7/site-packages/newrelic-2.54.0.41/newrelic/hooks/framework_django.py", line 499, in wrapper
    return wrapped(*args, **kwargs)

  File "/var/www/manager_scielo_org/scielomanager/validator/views.py", line 27, in packtools_home
    results, exc = utils.analyze_xml(xml_file)

  File "/var/www/manager_scielo_org/scielomanager/validator/utils.py", line 50, in analyze_xml
    xml = packtools.XMLValidator.parse(file)

  File "/var/www/.virtualenvs/scielomanager/lib/python2.7/site-packages/packtools/domain.py", line 199, in parse
    raise exceptions.XMLDoctypeError('Missing DOCTYPE declaration')

XMLDoctypeError: Missing DOCTYPE declaration
gustavofonseca pushed a commit to gustavofonseca/scielo-manager that referenced this issue May 13, 2016
gustavofonseca added a commit that referenced this issue May 13, 2016
…peError

Fixes #1266 - Tratamento da exceção *XMLDoctypeError* na validação de XML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant