handle REFILTERROR in execm
This commit is contained in:
+2
-2
@@ -9,13 +9,13 @@ try:
|
||||
from chm import chm,chmlib
|
||||
except:
|
||||
print "RECFILTERROR HELPERNOTFOUND python:chm"
|
||||
exit(1);
|
||||
sys.exit(1);
|
||||
|
||||
try:
|
||||
from HTMLParser import HTMLParser
|
||||
except:
|
||||
print "RECFILTERROR HELPERNOTFOUND python:HTMLParser"
|
||||
exit(1);
|
||||
sys.exit(1);
|
||||
|
||||
class ChmTopicsParser(HTMLParser):
|
||||
"""Parse the chm's Topic file which is basically
|
||||
|
||||
@@ -17,7 +17,7 @@ class RclExecM:
|
||||
def rclog(self, s, doexit = 0, exitvalue = 1):
|
||||
print >> sys.stderr, "RCLMFILT:", self.myname, ":", s
|
||||
if doexit:
|
||||
exit(exitvalue)
|
||||
sys.exit(exitvalue)
|
||||
# Our worker sometimes knows the mime types of the data it sends
|
||||
def setmimetype(self, mt):
|
||||
self.mimetype = mt
|
||||
|
||||
+3
-1
@@ -1,11 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import rclexecm
|
||||
import sys
|
||||
|
||||
try:
|
||||
from icalendar import Calendar, Event
|
||||
except:
|
||||
print "RECFILTERROR HELPERNOTFOUND python:icalendar"
|
||||
exit(1);
|
||||
sys.exit(1);
|
||||
|
||||
class IcalExtractor:
|
||||
def __init__(self, em):
|
||||
|
||||
Reference in New Issue
Block a user