howm2ics を調整してみた
http://alias.dip.jp/howm2ics/
howm2icsをサーバ型で使っているとhowmを編集中まれにですが次のようなエラーが出ます。
File "/****/****/lib/python/howm2ics/howm2ics.py", line 38, in ics_string f = open(os.path.join(root, file))IOError: [Errno 2] No such file or directory: '/****/****/howm/2007/10/.#2007-10-02-135800.howm'次のような patch をあててみます。うまく行くといいな。
$ rcsdiff -u howm2ics.py
===================================================================
RCS file: howm2ics.py,v
retrieving revision 1.2
diff -u -r1.2 howm2ics.py
--- howm2ics.py 2006/10/25 16:31:22 1.2
+++ howm2ics.py 2007/11/28 16:16:36
@@ -35,7 +35,10 @@
for root, dirs, files in os.walk(HOWM_ROOT):
for file in files:
if file[-len(HOWM_EXT):] != HOWM_EXT: continue
- f = open(os.path.join(root, file))
+ try:
+ f = open(os.path.join(root, file))
+ except:
+ continue
for l in f:
mo = dateRE.search(l)
Referer