Skip to content

Show more verbose message on import errors#1319

Merged
asvetlov merged 1 commit intoaio-libs:masterfrom
redixin:fix_import_error
Oct 19, 2016
Merged

Show more verbose message on import errors#1319
asvetlov merged 1 commit intoaio-libs:masterfrom
redixin:fix_import_error

Conversation

@redixin
Copy link
Copy Markdown
Contributor

@redixin redixin commented Oct 18, 2016

Show more verbose message on import errors when using python -m aiohttp.web

User will see more details in case of problems with their code.

For example message:

aiohttp.web: error: unable to import defiler.server: No module named 'aiomysql'

is more useful then:

aiohttp.web: error: module 'defiler.server' not found

such messages can be even misleading

@asvetlov
Copy link
Copy Markdown
Member

Please fix failed tests

ImportError is not always 'module not found', so we should display
more verbose message when this exception occured.

For example message:

    aiohttp.web: error: unable to import defiler.server: No module named 'aiomysql'

is more useful then:

    aiohttp.web: error: module 'defiler.server' not found
@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 19, 2016

Current coverage is 98.51% (diff: 100%)

Merging #1319 into master will not change coverage

@@             master      #1319   diff @@
==========================================
  Files            29         29          
  Lines          6515       6515          
  Methods           0          0          
  Messages          0          0          
  Branches       1094       1094          
==========================================
  Hits           6418       6418          
  Misses           47         47          
  Partials         50         50          

Powered by Codecov. Last update 2fd5b51...b784521

@asvetlov asvetlov merged commit 0033c48 into aio-libs:master Oct 19, 2016
@asvetlov
Copy link
Copy Markdown
Member

Thanks!

@lock
Copy link
Copy Markdown

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants