chore: fix pylint-2.7 errors (#33233)

This commit is contained in:
David Sanders 2022-03-20 19:11:21 -07:00 committed by GitHub
parent fdb60240f3
commit 45e2f86fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 30 additions and 32 deletions

View file

@ -160,6 +160,8 @@ def main():
'toolchain_profile.json')
upload_electron(release, toolchain_profile_zip, args)
return 0
def parse_args():
parser = argparse.ArgumentParser(description='upload distribution file')
parser.add_argument('-v', '--version', help='Specify the version',
@ -205,7 +207,7 @@ def zero_zip_date_time(fname):
try:
with open(fname, 'r+b') as f:
_zero_zip_date_time(f)
except:
except Exception:
raise NonZipFileError(fname)