Play | Editor Analyze

Editor

Karen Stirling

--> -->
 
 
<type 'exceptions.ValueError'>
Python 2.7.18: /usr/bin/python
Thu Mar 28 12:37:57 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/r/riktov/public_html/cgi-bin/20q_edit.py in <module>()
    395         edit_by_question(g_things, g_questions, g_q_id)
    396 elif query_by == 'thing' :      #by thing
=>  397         edit_by_thing(g_things, g_questions, g_th_name)
    398 else:
    399         edit_by_none(g_things, g_questions)
edit_by_thing = <function edit_by_thing>, g_things = [<Aaron Griffith : {'1': 'y', '3': 'n'}>, <Adam Whiting : {'1': 'n', '3': 'y'}>, <Adriana Alves : {'1': 'n', '3': 'n'}>, <Ai Nguyen Dang : {'1': 'n', '3': 'n'}>, <Andrea Obana : {'1': 'y', '3': 'n'}>, <Arthur Syin : {'1': 'n', '3': 'y'}>, <Aya McMahon : {'1': 'n', '3': 'n'}>, <Aya Ohi : {'1': 'y', '3': 'y'}>, <Bruce Taylor : {'1': 'n', '3': 'n'}>, <Carlos Inomata : {'1': 'y', '3': 'y'}>, <Carlos Ramirez : {'': ''}>, <Chris Heissner : {'1': 'n', '3': 'n'}>, <Daniel Bretzke : {'1': 'n', '3': 'n', '2': 'n', '14': 'y', '6': 'n'}>, <Daniel Wiltshire : {'1': 'y', '3': 'y', '2': 'y', '14': 'y', '6': 'n'}>, <Daniel Yuki Smith : {'1': 'n', '3': 'n'}>, <Daniel+Bretzke : {'1': 'y', '3': 'n', '2': 'n', '14': 'y', '6': 'y'}>, <Daniel+Wiltshire : {'1': 'n', '3': 'n', '2': 'n', '14': 'y', '6': 'y'}>, <Diana Meredith : {'1': 'n', '3': 'n'}>, <Eric Bowles : {'1': 'n', '3': 'n'}>, <Erica Benner : {'1': 'y', '3': 'n'}>, ...], g_questions = [], g_th_name = 'Karen Stirling'
 /home/r/riktov/public_html/cgi-bin/20q_edit.py in edit_by_thing(things=[<Aaron Griffith : {'1': 'y', '3': 'n'}>, <Adam Whiting : {'1': 'n', '3': 'y'}>, <Adriana Alves : {'1': 'n', '3': 'n'}>, <Ai Nguyen Dang : {'1': 'n', '3': 'n'}>, <Andrea Obana : {'1': 'y', '3': 'n'}>, <Arthur Syin : {'1': 'n', '3': 'y'}>, <Aya McMahon : {'1': 'n', '3': 'n'}>, <Aya Ohi : {'1': 'y', '3': 'y'}>, <Bruce Taylor : {'1': 'n', '3': 'n'}>, <Carlos Inomata : {'1': 'y', '3': 'y'}>, <Carlos Ramirez : {'': ''}>, <Chris Heissner : {'1': 'n', '3': 'n'}>, <Daniel Bretzke : {'1': 'n', '3': 'n', '2': 'n', '14': 'y', '6': 'n'}>, <Daniel Wiltshire : {'1': 'y', '3': 'y', '2': 'y', '14': 'y', '6': 'n'}>, <Daniel Yuki Smith : {'1': 'n', '3': 'n'}>, <Daniel+Bretzke : {'1': 'y', '3': 'n', '2': 'n', '14': 'y', '6': 'y'}>, <Daniel+Wiltshire : {'1': 'n', '3': 'n', '2': 'n', '14': 'y', '6': 'y'}>, <Diana Meredith : {'1': 'n', '3': 'n'}>, <Eric Bowles : {'1': 'n', '3': 'n'}>, <Erica Benner : {'1': 'y', '3': 'n'}>, ...], questions=[], th_name='Karen Stirling')
    310 
    311         responses = thing.responses     
=>  312         for q in missing_questions(questions):
    313                 if '-' + str(q) in tq.thing_trail(thing):
    314                         print "Has answered missing question %d" % q + '<br/>'
q undefined, global missing_questions = <function missing_questions>, questions = []
 /home/r/riktov/public_html/cgi-bin/20q_edit.py in missing_questions(questions=[])
    236         
    237 def missing_questions(questions):
=>  238         q_num_range = questions_num_range(questions)
    239         q_nums = [ int(tq.question_id(q)) for q in questions ]
    240         return set(q_num_range).difference(q_nums)
q_num_range undefined, global questions_num_range = <function questions_num_range>, questions = []
 /home/r/riktov/public_html/cgi-bin/20q_edit.py in questions_num_range(questions=[])
    232         """Return a range of questions from the existing ids"""
    233         q_ids = [ int(tq.question_id(q)) for q in questions ]
=>  234         full_range = range(min(q_ids), max(q_ids))
    235         return full_range
    236         
full_range undefined, builtin range = <built-in function range>, builtin min = <built-in function min>, q_ids = [], builtin max = <built-in function max>

<type 'exceptions.ValueError'>: min() arg is an empty sequence
      args = ('min() arg is an empty sequence',)
      message = 'min() arg is an empty sequence'