HamsterKombatBot icon indicating copy to clipboard operation
HamsterKombatBot copied to clipboard

Unknown error: local variable 'tasks_config' referenced before assignment

Open c5bomba opened this issue 1 year ago • 4 comments

image

c5bomba avatar Sep 06 '24 06:09 c5bomba

i think problem in

for task_config in tasks_config: if task_config['id'] == task_id: amount_reward = int(task_config.get('rewardCoins', 0))

hardim26 avatar Sep 06 '24 07:09 hardim26

i don khow why author do like that/// last commit where break deletion

hardim26 avatar Sep 06 '24 07:09 hardim26

I still have this error and TASKs part of bot doesn't work Any solutions please? Unknown error: cannot access local variable 'tasks_config' where it is not associated with a value

AKTanara avatar Sep 06 '24 20:09 AKTanara

I still have this error and TASKs part of bot doesn't work Any solutions please? Unknown error: cannot access local variable 'tasks_config' where it is not associated with a value

Found that tasks_config is assigned in PROMO function! When disabling PROMO function causes TASKs to fail. Solution: add this to tapper.py line 470: tasks_config = version_config['tasks']

@shamhi PLEASE commit

AKTanara avatar Sep 06 '24 21:09 AKTanara