prevent crash in option parsing

This commit is contained in:
Martin Diehl 2015-03-13 14:46:40 +00:00
parent 89fa31b070
commit c4f639dbfb
1 changed files with 2 additions and 1 deletions

View File

@ -733,6 +733,7 @@ parser.set_defaults(getIncrements= False)
# --- basic sanity checks
if files == []:
parser.print_help()
parser.error('no file specified...')
@ -750,7 +751,7 @@ if options.filetype == None:
options.filetype = theType
break
options.filetype = options.filetype.lower()
if options.filetype != None: options.filetype = options.filetype.lower()
if options.filetype == 'marc': offset_pos = 1
else: offset_pos = 0