fix sys is not defined

This commit is contained in:
ChuckNorrison 2022-11-08 01:15:54 +01:00 committed by GitHub
parent c3ef4d7260
commit 177446c581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]