| <type 'exceptions.IndexError'> | Python 2.5: /usr/local/bin/python Thu Feb 23 04:50:25 2012 |
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/mpro/cgi-bin/user/useradm.cgi in |
| 300 |
| 301 if __name__ == '__main__': |
| 302 main() |
| 303 |
| 304 |
| main = <function main at 0x82f441c> |
| /home/mpro/cgi-bin/user/useradm.cgi in main() |
| 253 |
| 254 def main(): |
| 255 domain_name = mailadmin.getDomain() |
| 256 domain = mailadmin.MailDomain(domain_name) |
| 257 data = cgi.FieldStorage() |
| domain_name undefined, global mailadmin = <module 'mailadmin' from '../lib/mailadmin.pyc'>, mailadmin.getDomain = <function getDomain at 0x82ee79c> |
| /home/mpro/cgi-bin/lib/mailadmin.py in getDomain() |
| 36 possible_domains = [] |
| 37 for line in qmvd: |
| 38 if line.strip().split(":")[1] == username: |
| 39 possible_domains.append(line.split(":")[0]) |
| 40 qmvd.close() |
| line = '\n', line.strip = <built-in method strip of str object at 0x82727e0>, ).split undefined, username = 'mpro' |
<type 'exceptions.IndexError'>: list index out of range