Skip to content

Commit

Permalink
ensured that a missing locName doesnt explode
Browse files Browse the repository at this point in the history
  • Loading branch information
A-UNDERSCORE-D committed Aug 6, 2021
1 parent 6ccf6ca commit 66b39b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion companion.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def suit_update(self, data: CAPIData) -> None:

# We need to be setting our edmcName for all suits
if (current_suit := monitor.state['SuitCurrent']) is not None:
loc_name = current_suit['locName'] if current_suit['locName'] else current_suit['name']
loc_name = current_suit['locName'] if current_suit.get('locName') else current_suit['name']
current_suit['edmcName'] = monitor.suit_sane_name(loc_name)

for s in monitor.state['Suits']:
Expand Down

0 comments on commit 66b39b5

Please sign in to comment.