options are always present
This commit is contained in:
parent
a9471920c5
commit
c37e85af2b
|
@ -48,7 +48,7 @@ In case of failure the following return value is returned:
|
|||
raise CommandError('Not found')
|
||||
|
||||
try:
|
||||
if 'file' in options:
|
||||
if options.get('file'):
|
||||
mail = email.message_from_file(file(options['file']))
|
||||
else:
|
||||
mail = email.message_from_file(sys.stdin)
|
||||
|
|
Loading…
Reference in New Issue