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

TypeError for a specific question #6

Open
firasm opened this issue Oct 1, 2020 · 0 comments
Open

TypeError for a specific question #6

firasm opened this issue Oct 1, 2020 · 0 comments

Comments

@firasm
Copy link

firasm commented Oct 1, 2020

Haven't debugged yet, but this question in a quiz causes problems. Removing this question permits the rest of the quiz to upload

+++ {"ctype": "question", "quesnum": 2, "question_type": "multiple_answers_question"}

### iota

Select all the TRUE statements about Excel.
Warning: Marks are deducted for incorrect answers.

* The value of =CONCATENATE("Hello", "World") is "Hello World" (without quotes).
* The format painter allows you to copy cell formatting/styles to other cells.
* Rows are indexed by letters.
* Relative cell references are indicated by the $ symbol
* Charts can be saved in csv files, as well as xls and xlsx files

+++ {"ctype": "answer", "quesnum": 2}

Answers

* False
* True
* False
* False
* False

The error is:

Uploading quiz to Canvas with following settings:
  URL = https://canvas.ubc.ca
  Token = 1122***************************************************************UgE

  Course ID = 45445
Traceback (most recent call last):
  File "/Users/firasm/.pyenv/versions/3.8.3/bin/md2canvas", line 8, in <module>
    sys.exit(md2canvas())
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/md2canvas/command.py", line 115, in md2canvas
    j2c.upload_quiz(quiz, url, token, course_id)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/md2canvas/json2canvas.py", line 206, in upload_quiz
    edit_quiz(url, quiz, canvas_quiz, canvas_quiz_folder)
  File "/Users/firasm/.pyenv/versions/3.8.3/lib/python3.8/site-packages/md2canvas/json2canvas.py", line 107, in edit_quiz
    for media in question["image_paths"]:
TypeError: 'NoneType' object is not subscriptable

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

1 participant