Skip to content

Commit

Permalink
Election Day: Fixes class check in eCH import.
Browse files Browse the repository at this point in the history
TYPE: Bugfix
  • Loading branch information
Marc Sommerhalder committed Jul 1, 2024
1 parent d045e67 commit 99f5f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onegov/election_day/formats/imports/election/ech.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def import_information_delivery(
if not isinstance(election, ProporzElection):
election.majority_type = 'relative'
session.add(election)
if not isinstance(election, cls):
errors.add( # type:ignore[unreachable]
if election.__class__ != cls:
errors.add(
FileImportError(
_('Changing types is not supported'),
filename=identification
Expand Down

0 comments on commit 99f5f86

Please sign in to comment.