Add output for EOFError, fix GH-273

This commit is contained in:
krateng 2023-11-04 13:47:31 +01:00
parent 6bb81ce589
commit 63b8a49993

View File

@ -37,6 +37,8 @@ def setup():
copy_initial_local_files()
SKIP = malojaconfig["SKIP_SETUP"]
try:
print("Various external services can be used to display images. If not enough of them are set up, only local images will be used.")
for k in ext_apikeys:
keyname = malojaconfig.get_setting_info(k)['name']
@ -80,3 +82,7 @@ def setup():
if newpw != newpw_repeat: print("Passwords do not match!")
else: break
auth.defaultuser.setpw(newpw)
except EOFError:
print("No user input possible. If you are running inside a container, set the environment variable",col['yellow']("MALOJA_SKIP_SETUP=yes"))
raise SystemExit