1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-05-13 04:00:19 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Samuel FORESTIER
ee985814b8 [CORE] Fixes two new Pylint errors related to uncaught exceptions issues 2022-04-06 19:42:14 +02:00
Taylor King
bd5bae154a
[LOGO] Makes Rocky logo look better (#112) 2022-04-06 17:39:41 +00:00
3 changed files with 5 additions and 5 deletions

@ -173,11 +173,11 @@ def main():
# Has the screenshot flag been specified ?
if args.screenshot is not None:
# If so, but still _falsy_, pass `None` as no output file has been specified by the user.
screenshot_taken = False
try:
# If so, but still _falsy_, pass `None` as there is no user-defined output file.
screenshot_taken = take_screenshot((args.screenshot or None))
except KeyboardInterrupt:
screenshot_taken = False
print()
finally:
sys.exit((not screenshot_taken))

@ -75,7 +75,8 @@ class Temperature(Entry):
if whitelisted_chip is not None:
sensors_args.append(whitelisted_chip)
# Uses the `sensors` program (from lm-sensors) to interrogate thermal chip-sets.
# Uses the `sensors` program (from lm-sensors) to query thermal chipsets.
error_message = None
try:
sensors_output = run(
sensors_args,
@ -84,7 +85,6 @@ class Temperature(Entry):
check=True
)
except FileNotFoundError:
error_message = None
return None
except CalledProcessError as called_process_error:
error_message = called_process_error.stderr

@ -17,7 +17,7 @@ LOGO = [
"""{c[0]} iiiliiiiliiiiiiili>` ~liililii""",
"""{c[0]} liliiiliiilililii` -9liiiil""",
"""{c[0]} iiiiiliiliiiiii~ "4lili""",
"""{c[0]} 4ililiiiiilil~| -w, )4lf""",
"""{c[0]} 4ililiiiiilil~ -w, )4lf""",
"""{c[0]} -liiiiililiF' _liig, )'""",
"""{c[0]} )iiiliii@` _QIililig, """,
"""{c[0]} )iiii>` .Qliliiiililw """,