Skip to content

Crash on crontab without any nanobots #36

@EzyPzyAsh

Description

@EzyPzyAsh

[user@host]$ idlegame
user@idlegame % crontab
Traceback (most recent call last):
File "/home/ashley/myenv/bin/idlegame", line 7, in
sys.exit(main())
~~~~^^
File "/home/ashley/myenv/lib/python3.14/site-packages/idlegame/main.py", line 230, in main
cli.cmdloop()
~~~~~~~~~~~^^
File "/usr/lib/python3.14/cmd.py", line 149, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.14/cmd.py", line 226, in onecmd
return self.default(line)
~~~~~~~~~~~~^^^^^^
File "/home/ashley/myenv/lib/python3.14/site-packages/idlegame/main.py", line 217, in default
self.commands[command](self.player, *positional, **kwargs) # Pass arguments
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ashley/myenv/lib/python3.14/site-packages/idlegame/idle.py", line 143, in handle_crontab
time_offline = now - player.last_claim_timestamp
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsuppored operand type(s) for -: 'datetime.datetime' and 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerThis is a good issue for a beginner-level programmerbugSomething isn't workinghelp wantedExtra attention is neededpythonThis bug is in Python code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions