Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdline help broken #13

Open
andylytical opened this issue Nov 17, 2023 · 2 comments
Open

cmdline help broken #13

andylytical opened this issue Nov 17, 2023 · 2 comments

Comments

@andylytical
Copy link
Member

docker run -it --name ncsa_vacation_calendar_sync --entrypoint /bin/bash --mount type=bind,source=$HOME,dst=/home ghcr.io/ncsa/vacation_calendar_sync:production

Traceback (most recent call last):
  File "/vacation_calendar_sync/OutlookCalendar.py", line 2, in <module>
    import SharedCalendar
    ^^^^^^^^^^^^^^^^^^^^^
  File "/vacation_calendar_sync/SharedCalendar.py", line 9, in <module>
    from SimpleEvent import SimpleEvent
  File "/vacation_calendar_sync/SimpleEvent.py", line 14, in <module>
    start_of_workday = configs['start_of_work_day']
                       ~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'start_of_work_day'
@andylytical
Copy link
Member Author

Just noticed that there is no -h option in the code. Should either update the README or add a cmdline help option. I would vote for the latter.

@andylytical
Copy link
Member Author

Also noticed that the sample_config.yaml is not correct. Looks very out of date compared to the one in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant