l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
576 stars 52 forks source link

traktarr.service error. #59

Closed Landelor closed 4 years ago

Landelor commented 5 years ago

Hi team,

Getting this error when trying to run traktarr as a systemd service.


Dec 07 20:12:11 LanBOX python3[38656]: 2018-12-07 20:12:11,149 - ERROR      - traktarr                            - run                                 - Unhandled exception occurred while processing scheduled tasks: unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'
Dec 07 20:12:11 LanBOX python3[38656]: Traceback (most recent call last):
Dec 07 20:12:11 LanBOX python3[38656]:   File "/opt/traktarr/traktarr.py", line 846, in run
Dec 07 20:12:11 LanBOX python3[38656]:     time.sleep(max(schedule.idle_seconds(), 0))
Dec 07 20:12:11 LanBOX python3[38656]:   File "/usr/local/lib/python3.6/dist-packages/schedule/__init__.py", line 528, in idle_seconds
Dec 07 20:12:11 LanBOX python3[38656]:     return default_scheduler.idle_seconds
Dec 07 20:12:11 LanBOX python3[38656]:   File "/usr/local/lib/python3.6/dist-packages/schedule/__init__.py", line 152, in idle_seconds
Dec 07 20:12:11 LanBOX python3[38656]:     return (self.next_run - datetime.datetime.now()).total_seconds()
Dec 07 20:12:11 LanBOX python3[38656]: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'```
desimaniac commented 5 years ago

Can't have 0's for list limits in config.

desimaniac commented 4 years ago

Support for 0 interval has now been added in 86e33a8