raise exception instead of returning None if PKC needs to exit and we're trying to connect to a DB

This commit is contained in:
croneter 2019-12-13 12:46:26 +01:00
parent b4e132af85
commit a715b3a473

View file

@ -93,7 +93,7 @@ def connect(media_type=None):
raise LockedDatabase('Database is locked') raise LockedDatabase('Database is locked')
if app.APP.monitor.waitForAbort(0.05): if app.APP.monitor.waitForAbort(0.05):
# PKC needs to quit # PKC needs to quit
return raise LockedDatabase('Database was locked and we need to exit')
else: else:
break break
return conn return conn