f-klubben / stregsystemet-cli

A command line interface to buy things in stregsystemet
Other
15 stars 7 forks source link

Unable to run SETUP flag on clean install #124

Open Zaph-x opened 1 year ago

Zaph-x commented 1 year ago

When creating a new installation of STS, running the -s flag produces the following stacktrace:

Traceback (most recent call last):
  File "/opt/homebrew/bin/sts", line 1032, in <module>
    sts.load()
  File "/opt/homebrew/bin/sts", line 643, in load
    self._argument_handler.handle_stopping(self, self._user_manager, self._request_handler)
  File "/opt/homebrew/bin/sts", line 296, in handle_stopping
    self.setup_sts(user_manager, request_handler, Configuration())
  File "/opt/homebrew/bin/sts", line 395, in setup_sts
    configuration.write()
  File "/opt/homebrew/bin/sts", line 162, in write
    with open(paths[0], 'w') as configfile:
IndexError: list index out of range

This has been tested on MacOS