prevent crash in option parsing
This commit is contained in:
parent
89fa31b070
commit
c4f639dbfb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue