Skip to content

Commit

Permalink
Python formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Sep 26, 2023
1 parent 7bdc847 commit ddd0d16
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docassemble/ALToolbox/al_income.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,12 +1029,17 @@ def _item_value_per_times_per_year(
frequency_to_use = self.times_per_year

# NOTE: fixes a bug that was present < 0.8.2
try :
hours_per_period = Decimal(self.hours_per_period)
try:
hours_per_period = Decimal(self.hours_per_period)
except:
log(word("Your hours per period need to be just a single number, without words"), "danger")
delattr(self, "hours_per_period")
self.hours_per_period # Will cause another exception
log(
word(
"Your hours per period need to be just a single number, without words"
),
"danger",
)
delattr(self, "hours_per_period")
self.hours_per_period # Will cause another exception

# Both the job and the item itself need to be hourly to be
# calculated as hourly
Expand Down

0 comments on commit ddd0d16

Please sign in to comment.