parent
149117029c
commit
5c23f90f0b
|
@ -57,10 +57,14 @@ if 'SCRIPT_NAME' in os.environ:
|
||||||
|
|
||||||
|
|
||||||
def filterOptions(options):
|
def filterOptions(options):
|
||||||
allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug']
|
return options
|
||||||
filtered = dict([(key,value) for (key,value) in options.items() if key in allowed])
|
|
||||||
|
|
||||||
return filtered
|
# example of filtering code below
|
||||||
|
|
||||||
|
#allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug']
|
||||||
|
#filtered = dict([(key,value) for (key,value) in options.items() if key in allowed])
|
||||||
|
|
||||||
|
#return filtered
|
||||||
|
|
||||||
|
|
||||||
class MorssException(Exception):
|
class MorssException(Exception):
|
||||||
|
|
Loading…
Reference in New Issue