the forums at degreez.net
http://forums.degreez.net/

Observations on ConfigDir.py
http://forums.degreez.net/viewtopic.php?f=4&t=4225
Page 1 of 1

Author:  TimTucker [ Sat Jan 22, 2005 5:35 am ]
Post subject:  Observations on ConfigDir.py

I've noticed that ConfigDir occasionally generates an exception when trying to get the timestamp on files -- haven't been able to figure out exactly why, but the following workaround is the best that I've been able to come up with:

replace:
Code:
times.setdefault(f,[]).append(os.path.getmtime(p))


with:
Code:
try:
    t = os.path.getmtime(p)
except:
    t = time()


As a note, I'd also posted some other suggestions while you were gone... not sure if you'd seen the threads:
SocketHandler.py:
http://forums.degreez.net/viewtopic.php?p=16859&highlight=#16859

zurllib.py:
http://forums.degreez.net/viewtopic.php?p=16656&highlight=#16656

Author:  TheSHAD0W [ Sat Jan 22, 2005 12:40 pm ]
Post subject: 

I've added these changes to the codebase. Thanks.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/