<type 'exceptions.OSError'> | Python 2.7.18: /usr/bin/python2 Thu May 22 14:14:09 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/index.py in <module>() |
74 #session mechanism and authenticating user |
75 |
=> 76 sess = session(form, cook["sessid"].value if "sessid" in cook else None) |
77 sess.load() |
78 #login = sess.trylog(connection) |
sess undefined, session = <class session.session>, form = FieldStorage(None, None, [MiniFieldStorage('data...do', 'rezerwuj'), MiniFieldStorage('pora', '1')]), cook = <SimpleCookie: >, ].value undefined, builtin None = None |
/session.py in __init__(self=<session.session instance>, formul=FieldStorage(None, None, [MiniFieldStorage('data...do', 'rezerwuj'), MiniFieldStorage('pora', '1')]), sessid=None) |
25 if not self.form.has_key('sessid'): |
26 if not sessid: |
=> 27 self.nuke() |
28 string = '' |
29 for i in random.sample('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_=+',6): |
self = <session.session instance>, self.nuke = <bound method session.nuke of <session.session instance>> |
/session.py in nuke(self=<session.session instance>) |
74 timen = time.time() |
75 for fp in os.listdir("ses/"): |
=> 76 info = os.stat("ses/"+fp) |
77 if info.st_mtime < timen-1800: |
78 try: |
info = posix.stat_result(st_mode=33188, st_ino=7970634,...915110, st_mtime=1747915110, st_ctime=1747915110), global os = <module 'os' from '/usr/lib/python2.7/os.py'>, os.stat = <built-in function stat>, fp = '17479141333419611417014943pFnHYK.ses' |
<type 'exceptions.OSError'>: [Errno 2] No such file or directory: 'ses/17479141333419611417014943pFnHYK.ses'
args =
(2, 'No such file or directory')
errno =
2
filename =
'ses/17479141333419611417014943pFnHYK.ses'
message =
''
strerror =
'No such file or directory'