Skip to content

Commit

Permalink
BUG: sclistorg doesn't print events without a type
Browse files Browse the repository at this point in the history
When the event type is not set the command doesn't print the event
even though --ev-type is not given
  • Loading branch information
luca-s committed Mar 8, 2021
1 parent 3ad075d commit 669da93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sclistorg/sclistorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def run(self):
try:
evtype = sc_datamodel.EEventTypeNames.name(evt.type())
except ValueError:
continue
evtype = None
if (self.evtypes is not None) and \
(evtype is None or evtype not in self.evtypes):
continue
Expand Down

0 comments on commit 669da93

Please sign in to comment.