mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Clean up minor warnings from LGTM.com (#7500)
* Clean up minor warnings from LGTM.com LGTM (Semmie) is a tool, bought by GitHub last year, that conducts basic linting tasks on code and HTML. Clean up the warnings identified in the latest report: https://lgtm.com/projects/g/esp8266/Arduino/?mode=list No functionality should change, however this may fix some issues with the perl utilities not exiting properly on a Ctrl-C from the command line. * Back out HTML changes and rerun boards.txt.py
This commit is contained in:
committed by
GitHub
parent
a8e35a579c
commit
9afb084159
@ -32,7 +32,7 @@ def generate(path, platform_path, git_ver="ffffffff", git_desc="unspecified"):
|
||||
try:
|
||||
git_ver = git("rev-parse", "--short=8", "HEAD")
|
||||
git_desc = git("describe", "--tags")
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver)
|
||||
@ -43,7 +43,7 @@ def generate(path, platform_path, git_ver="ffffffff", git_desc="unspecified"):
|
||||
old_text = inp.read()
|
||||
if old_text == text:
|
||||
return
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
with open(path, "w") as out:
|
||||
@ -73,7 +73,7 @@ if __name__ == "__main__":
|
||||
include_dir = os.path.join(args.build_path, args.include_dir)
|
||||
try:
|
||||
os.makedirs(include_dir)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
generate(
|
||||
|
Reference in New Issue
Block a user