Optionally surface exceptions that happen under executors by reading
[python_utils.git] / base_presence.py
index f846e65bc921529229fd76b0784ad5450896b5e3..612193e1df3b84f0ee8fc52b86ab5c94ce7ee38d 100755 (executable)
@@ -230,9 +230,10 @@ class PresenceDetection(object):
                     logger.debug(f'Seen {mac} ({mac_name}) at {location} since {ts}')
                     tiebreaks[location] = ts
 
-            (most_recent_location, first_seen_ts) = dict_utils.item_with_max_value(
-                tiebreaks
-            )
+            (
+                most_recent_location,
+                first_seen_ts,
+            ) = dict_utils.item_with_max_value(tiebreaks)
             bonus = credit
             v = votes.get(most_recent_location, 0)
             votes[most_recent_location] = v + bonus