Fix error msg with corrupted file

This commit is contained in:
Martin Zibricky 2011-08-26 13:04:56 +02:00
parent 20c431a6e5
commit eef0af11ac

View File

@ -238,9 +238,8 @@ def main(args=None):
log.addHandler(logfile)
logging.addLevelName(15, u'Timer')
# Parse command line options and deal with them.
if not args:
args = sys.argv # Use args not supplied programatically
(options, args) = parser.parse_args(args)
# Use args supplied programatically if possible.
(options, args) = parser.parse_args(args) if args else parser.parse_args()
qt_args = []
if options.loglevel.lower() in ['d', 'debug']:
log.setLevel(logging.DEBUG)