mirror of
https://github.com/krateng/maloja.git
synced 2025-06-06 18:33:19 +03:00
Add output for EOFError, fix GH-273
This commit is contained in:
parent
6bb81ce589
commit
63b8a49993
@ -37,6 +37,8 @@ def setup():
|
|||||||
copy_initial_local_files()
|
copy_initial_local_files()
|
||||||
SKIP = malojaconfig["SKIP_SETUP"]
|
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.")
|
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:
|
for k in ext_apikeys:
|
||||||
keyname = malojaconfig.get_setting_info(k)['name']
|
keyname = malojaconfig.get_setting_info(k)['name']
|
||||||
@ -80,3 +82,7 @@ def setup():
|
|||||||
if newpw != newpw_repeat: print("Passwords do not match!")
|
if newpw != newpw_repeat: print("Passwords do not match!")
|
||||||
else: break
|
else: break
|
||||||
auth.defaultuser.setpw(newpw)
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user