Skip to content

Commit

Permalink
style: 🚨 Fix flake8 whitespace warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DJHero2903 committed Nov 22, 2024
1 parent 41f289f commit 7617057
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@

def check_positive(value):
# Ensure that the given duration is above -1.

try:
x = int(value)

if x >= 0:
return x
else:
raise ArgumentTypeError(f"{value} is not an integer >= 0.")

except ValueError:
raise ArgumentTypeError(f"\"{value}\" is not an integer.")
raise ArgumentTypeError(f'"{value}" is not an integer.')


def signal_handler(signal, frame) -> None:
# On ctrl+c SIGINT signal, turn off beacon before program exit.
Expand Down

0 comments on commit 7617057

Please sign in to comment.