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:
parent
b4e132af85
commit
a715b3a473
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue