fix sys is not defined
This commit is contained in:
parent
c3ef4d7260
commit
177446c581
|
@ -24,7 +24,7 @@ sqfolder = env.str("LNBITS_DATA_FOLDER", default=None)
|
|||
LNBITS_DATABASE_URL = env.str("LNBITS_DATABASE_URL", default=None)
|
||||
if LNBITS_DATABASE_URL is None:
|
||||
print("missing LNBITS_DATABASE_URL")
|
||||
sys.exit(1)
|
||||
os.sys.exit(1)
|
||||
else:
|
||||
# parse postgres://lnbits:postgres@localhost:5432/lnbits
|
||||
pgdb = LNBITS_DATABASE_URL.split("/")[-1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user