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

jutge upload fails when a problem is not found #10

Closed
Leixb opened this issue Oct 6, 2017 · 0 comments
Closed

jutge upload fails when a problem is not found #10

Leixb opened this issue Oct 6, 2017 · 0 comments

Comments

@Leixb
Copy link
Owner

Leixb commented Oct 6, 2017

Behaviour

Issuing the command:

jutge upload --problem-set 'Consolidation 3' --delay 10000

Gives this error:

Problem set exceds contains more than 20 problems (70) continue? [Ny]
y
Traceback (most recent call last):
  File "./jutge_cli/jutge.py", line 170, in <module>
    if __name__ == '__main__': main()
  File "./jutge_cli/jutge.py", line 168, in main
    args.func(args)
  File "./jutge_cli/jutge.py", line 28, in run_upload
    def run_upload(args): upload.upload(args)
  File "/home/leix/Documents/Projects/jutge_cli/jutge_cli/commands/upload.py", line 60, in __init__
    glob('{}/{}*'.format(set_name,subcode)))[0]
IndexError: list index out of range

This is caused because it cannot find the first problem in the set on the archive.

Desired behaviour

Warn about the missing problem and proceed to the next one

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