Updating config prints error (argument must be a string, a bytes-like object or a real number, not 'NoneType')
I basically have the same problem as here: https:/
But it seems that the error is thrown, but the config is still updated...
I wanted to update the config via CLI, using this command:
sudo timekpra --setallowedhours 'numerfolt' 'ALL' '0[0-30]
The result of this command is:
Fehler beim Aktualisieren der Konfiguration. Bitte die Timekpr-nExT Logs ansehen
("Error updating configuration. Please look into the Timekpr-nExT logfiles")
The error in the log is:
2025-09-16 22:15:25.697713: Unexpected ERROR (setAllowedHours): int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
The config at the moment is:
user "numerfolt" configuration:
ALLOWED_HOURS_1: 0[0-30]
ALLOWED_HOURS_2: 0[0-30]
ALLOWED_HOURS_3: 0[0-30]
ALLOWED_HOURS_4: 0[0-30]
ALLOWED_HOURS_5: 0[0-30]
ALLOWED_HOURS_6: 0[0-30]
ALLOWED_HOURS_7: 0[0-30]
ALLOWED_WEEKDAYS: 1;2;3;4;5;6;7
LIMITS_
TRACK_INACTIVE: False
HIDE_TRAY_ICON: False
LOCKOUT_TYPE: lock
LIMIT_PER_WEEK: 604800
LIMIT_PER_MONTH: 2678400
PLAYTIME_ENABLED: True
PLAYTIME_
PLAYTIME_
PLAYTIME_
PLAYTIME_
PLAYTIME_
As you can see from the configuration, it actually saves the config file even though the errors says otherwise...
What I actually want to achieve is normal usage from 8-0:30 with up to 4 hours of play time between 14 and 0:30.
For that I probably need to
- disable the PLAYTIME_
- set the playtime limit to 14400
- daily limit to 24h (or unlimited usage for all hours?)
Or do I miss something?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Eduards Bezverhijs Edit question
- Solved by:
- Numerfolt
- Solved:
- Last query:
- Last reply:
