def errCatch(num, add):
    if num==1:
        print "No bin file added!"
    elif num==2:
        if len(add)<1:
            print "Check file address!"
            return 2
    elif num==3:
        print "Check gain and exp time!"

ab04c28eedf0d54e91bc3a50140f417d268b665d
def errCatch(num, add):
    if num==1:
        print "No bin file added!"
    elif num==2:
        if len(add)<1:
            print "Check file address!"
            return 2
    elif num==3:
        print "Check gain and exp time!"
