Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wortelus committed Aug 1, 2022
1 parent 54e5a16 commit 40478d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,17 @@ def __init__(self, index, name, icon, cmd_type, label=None, dataref=None, datare
pass
elif self.dataref_states is not None:
if icon is None:
logging.error("#{} {} is trying to set dataref_states without the 'icon' parameter, quitting...")
logging.error("#{} {} is trying to set dataref_states without the 'icon' parameter, quitting..."
.format(index, name))
sys.exit(1)

self.file_names = np.empty(len(self.dataref_states), dtype=object)
for i, state in enumerate(self.dataref_states):
self.file_names[i] = get_filename_button_dataref_png(icon, state)
else:
if icon is None:
logging.error("#{} {} is trying to set static icon without the 'icon' parameter, quitting...")
logging.error("#{} {} is trying to set static icon without the 'icon' parameter, quitting..."
.format(index, name))
sys.exit(1)

self.file_names = np.empty(1, dtype=object)
Expand Down

0 comments on commit 40478d9

Please sign in to comment.