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

ValueError when importing icecream with alias #7

Closed
piyushrungta25 opened this issue Feb 17, 2018 · 3 comments
Closed

ValueError when importing icecream with alias #7

piyushrungta25 opened this issue Feb 17, 2018 · 3 comments

Comments

@piyushrungta25
Copy link

The following exception is thrown when icecream.ic is imported with an alias.

ValueError: min() arg is an empty sequence

How to reproduce

from icecream import ic as foo

foo(1)

throws the above exception instead of the expected output foo| 1: 1

@gruns
Copy link
Owner

gruns commented Feb 18, 2018

Yep. Currently broken.

https://github.com/gruns/icecream/blob/master/icecream/icecream.py#L274

I'm aware of this limitation and will fix shortly.

@gruns
Copy link
Owner

gruns commented Feb 18, 2018

Fixed in 00f87e9.

Fix will go out in the next version.

@gruns
Copy link
Owner

gruns commented Feb 21, 2018

Fixed in v1.0.

>>> from icecream import ic as foo
>>> foo(1)
ic| 1: 1

Upgrade with

$ pip install icecream --upgrade

Thank you again, Piyush. Don't hesitate to let me know if there's anything else I can do for you.

@gruns gruns closed this as completed Feb 21, 2018
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

No branches or pull requests

2 participants