Skip to content

Commit

Permalink
Indentation error and edge case.
Browse files Browse the repository at this point in the history
  • Loading branch information
typesupply committed Feb 13, 2021
1 parent f71b121 commit 3c5f98b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Lib/defcon/tools/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,13 @@ def findObservations(self, observer=None, notification=None, observable=None, id
otherIdentifier = None
if (otherNotification, otherObservable) in self._identifierRegistry:
otherIdentifier = self._identifierRegistry[otherNotification, otherObservable].get(otherObserver)
if otherIdentifier is not None and identifier is not None:
if not fnmatchcase(otherIdentifier, identifier):
continue
if otherIdentifier is None and identifier is not None:
continue
if otherIdentifier is not None and identifier is None:
continue
if otherIdentifier is not None and identifier is not None:
if not fnmatchcase(otherIdentifier, identifier):
continue
if observer is not None:
if otherObserver != observer:
continue
Expand Down

0 comments on commit 3c5f98b

Please sign in to comment.