forked from openlp/openlp
Fix error msg with corrupted file
This commit is contained in:
parent
20c431a6e5
commit
eef0af11ac
@ -238,9 +238,8 @@ def main(args=None):
|
|||||||
log.addHandler(logfile)
|
log.addHandler(logfile)
|
||||||
logging.addLevelName(15, u'Timer')
|
logging.addLevelName(15, u'Timer')
|
||||||
# Parse command line options and deal with them.
|
# Parse command line options and deal with them.
|
||||||
if not args:
|
# Use args supplied programatically if possible.
|
||||||
args = sys.argv # Use args not supplied programatically
|
(options, args) = parser.parse_args(args) if args else parser.parse_args()
|
||||||
(options, args) = parser.parse_args(args)
|
|
||||||
qt_args = []
|
qt_args = []
|
||||||
if options.loglevel.lower() in ['d', 'debug']:
|
if options.loglevel.lower() in ['d', 'debug']:
|
||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
|
Loading…
Reference in New Issue
Block a user