NoOptionError
Python 3.7.3: /usr/bin/python3
Thu Nov 26 18:43:11 2020

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

 /usr/lib/cgi-bin/tvh_epg.py in <module>()
   1474     cgitb.enable(display=0, logdir=DOCROOT + '/python_errors', format='html')
   1475 
=> 1476     web_interface()
   1477 
   1478 else:
web_interface = <function web_interface>
 /usr/lib/cgi-bin/tvh_epg.py in web_interface()
   1406             #print("<p>%s = %s</p>" % (headername, headervalue, ) )
   1407 
=> 1408         page_epg()
   1409         html_page_footer()
   1410     elif p_page == 'error':
global page_epg = <function page_epg>
 /usr/lib/cgi-bin/tvh_epg.py in page_epg()
    650     epoch_time = time.time()
    651 
=>  652     channel_dict = get_channel_dict()
    653     channel_tag = get_channeltag_grid()
    654     cdl = len(channel_dict)
channel_dict undefined, global get_channel_dict = <function get_channel_dict>
 /usr/lib/cgi-bin/tvh_epg.py in get_channel_dict()
    334     ts_user     = MY_SETTINGS.get(SETTINGS_SECTION, TS_USER)
    335     ts_pass     = MY_SETTINGS.get(SETTINGS_SECTION, TS_PASS)
=>  336     ts_max_ch   = MY_SETTINGS.get(SETTINGS_SECTION, MAX_CHANS)
    337     ts_query = '%s/%s?limit=%s' % (
    338         ts_url,
ts_max_ch undefined, global MY_SETTINGS = <configparser.ConfigParser object>, MY_SETTINGS.get = <bound method RawConfigParser.get of <configparser.ConfigParser object>>, global SETTINGS_SECTION = 'user', global MAX_CHANS = 'max_chans'
 /usr/lib/python3.7/configparser.py in get(self=<configparser.ConfigParser object>, section='user', option='max_chans', raw=False, vars=None, fallback=<object object>)
    789         except KeyError:
    790             if fallback is _UNSET:
=>  791                 raise NoOptionError(option, section)
    792             else:
    793                 return fallback
global NoOptionError = <class 'configparser.NoOptionError'>, option = 'max_chans', section = 'user'

NoOptionError: No option 'max_chans' in section: 'user'
      args = ('max_chans', 'user')
      message = "No option 'max_chans' in section: 'user'"
      option = 'max_chans'
      section = 'user'
      with_traceback = <built-in method with_traceback of NoOptionError object>