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

info method #13

Open
dangiger opened this issue Aug 18, 2017 · 1 comment
Open

info method #13

dangiger opened this issue Aug 18, 2017 · 1 comment

Comments

@dangiger
Copy link

dangiger commented Aug 18, 2017

The method info() is not working. Perhaps this is because CU changed the way they display user information, here is the error I get when running this code.

Note: This works fine when I use the classes() method.

loginUser = mycuinfo.CUSession(user, password)
userinfo = loginUser.info()

Traceback (most recent call last):
File "/Users/<>/PycharmProjects/untitled/main", line 19, in
main()
File "/Users/<>/PycharmProjects/untitled/main", line 10, in main
userinfo = loginUser.info()
File "/usr/local/lib/python2.7/site-packages/mycuinfo/cusession.py", line 149, in info
name = item.split('<')[1].split('>')[0]
IndexError: list index out of range

@biw
Copy link
Owner

biw commented Aug 18, 2017

Is there anything that doesn't make you a standard student (more than one major, more than one college, student employee, no student ID, etc.)?

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