Re: [Freevo-cvslog] r8472 - branches/rel-1/freevo/src/helpers

2006-10-25 Thread Dirk Meyer
Duncan Webb wrote:
> Author: duncan
> Date: Wed Oct 25 07:10:34 2006
> New Revision: 8472
>
> Modified:
>branches/rel-1/freevo/src/helpers/rssPeriodic.py
>
> Log:
> Buf fix, didn't detect EOF.
>
>
> Modified: branches/rel-1/freevo/src/helpers/rssPeriodic.py
> ==
> --- branches/rel-1/freevo/src/helpers/rssPeriodic.py  (original)
> +++ branches/rel-1/freevo/src/helpers/rssPeriodic.py  Wed Oct 25 07:10:34 2006
> @@ -71,6 +71,8 @@
> downloadedUrls=pickle.load(open(cacheFile,"r"))
>  except IOError:
> return False
> +except EOFError:
> +   return False

WTF is that? I never saw an EOF exception before. Can this only happen
in pickle?


Dischi

-- 
errors in argv often lead to output of argh
-- suffered wisdom


pgpQnDjXvAhzt.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] r8472 - branches/rel-1/freevo/src/helpers

2006-10-25 Thread Duncan Webb
Author: duncan
Date: Wed Oct 25 07:10:34 2006
New Revision: 8472

Modified:
   branches/rel-1/freevo/src/helpers/rssPeriodic.py

Log:
Buf fix, didn't detect EOF.


Modified: branches/rel-1/freevo/src/helpers/rssPeriodic.py
==
--- branches/rel-1/freevo/src/helpers/rssPeriodic.py(original)
+++ branches/rel-1/freevo/src/helpers/rssPeriodic.pyWed Oct 25 07:10:34 2006
@@ -71,6 +71,8 @@
downloadedUrls=pickle.load(open(cacheFile,"r"))
 except IOError:
return False
+except EOFError:
+   return False
 foundFile=False
 for line in downloadedUrls:
 if string in line:

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog