jspricke / remind-caldav

CalDAV client to sync to Remind
GNU General Public License v3.0
27 stars 7 forks source link

rem2dav: wrong timezone bad error message #7

Open 532910 opened 5 years ago

532910 commented 5 years ago
% echo 'REM ...' | rem2dav -z MSK -r URL -u USER -p PASS -
/usr/lib/python3/dist-packages/dateutil/zoneinfo/__init__.py:26: UserWarning: I/O error(2): No such file or directory
  warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror))
% echo 'REM ...' | rem2dav -z NONE -r URL -u USER -p PASS -
/usr/lib/python3/dist-packages/dateutil/zoneinfo/__init__.py:26: UserWarning: I/O error(2): No such file or directory
  warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror))
Traceback (most recent call last):
  File "/usr/local/bin/rem2dav", line 11, in <module>
    load_entry_point('remind-caldav==0.6.0', 'console_scripts', 'rem2dav')()
  File "/usr/local/lib/python3.7/dist-packages/remind_caldav-0.6.0-py3.7.egg/rem2dav.py", line 59, in main
AttributeError: 'NoneType' object has no attribute 'zone'

With correct timezon -z Europe/Moscow all works fine.