May-02-2023, 11:24 AM
(May-02-2023, 06:58 AM)Gribouillis Wrote: The arguments of hardware_handler are in the wrong order. Self must be the first argument
class HardwareMaintenance: def __init__(self, info_dict = None ): self.info_dict = dict() if info_dict is None else info_dict def hardware_handler(self, ConnectHandler, ip=None): self.info_dict[ip] = []
Thank you this cleared up just about everything for me, and I have a much better understanding where i went wrong. I'm going to stick with the old code, as this one will force me to do multiple inheritance which i don't need right now. However your suggestion worked. Thanks.