From e0c09672b148365a9691cfdf89e54656c233d870 Mon Sep 17 00:00:00 2001 From: Eriks Karls Date: Thu, 27 Feb 2020 18:25:04 +0200 Subject: [PATCH] call to super must include email and password --- erepublik/__init__.py | 2 +- erepublik/citizen.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/erepublik/__init__.py b/erepublik/__init__.py index 1c08c80..bf5eeee 100644 --- a/erepublik/__init__.py +++ b/erepublik/__init__.py @@ -5,7 +5,7 @@ __author__ = """Eriks Karls""" __email__ = 'eriks@72.lv' __version__ = '0.20.0' -__commit_id__ = "22dc18d" +__commit_id__ = "d6a0d5a" from erepublik import classes, utils from erepublik.citizen import Citizen diff --git a/erepublik/citizen.py b/erepublik/citizen.py index a267470..90d2993 100644 --- a/erepublik/citizen.py +++ b/erepublik/citizen.py @@ -2135,10 +2135,8 @@ class Citizen( debug: bool = False def __init__(self, email: str = "", password: str = "", auto_login: bool = True): - super().__init__() + super().__init__(email, password) self.__last_full_update = utils.good_timedelta(self.now, - timedelta(minutes=5)) - self.config.email = email - self.config.password = password self.set_debug(True) if auto_login: self.login()