mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Replace the generic exception class with a more specific one.
This commit is contained in:
committed by
Akshay Joshi
parent
68a5027d15
commit
d6400bbcae
@@ -204,8 +204,8 @@ class BatchProcess(object):
|
||||
|
||||
if self.stime is not None:
|
||||
if self.etime is None:
|
||||
raise Exception(_('The process has already been started.'))
|
||||
raise Exception(
|
||||
raise RuntimeError(_('The process has already been started.'))
|
||||
raise RuntimeError(
|
||||
_('The process has already finished and cannot be restarted.')
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user