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
@@ -13,6 +13,7 @@ import sys
|
||||
from flask import render_template
|
||||
from flask_babelex import gettext as _
|
||||
from pgadmin.utils.preferences import Preferences
|
||||
from werkzeug.exceptions import InternalServerError
|
||||
|
||||
import config
|
||||
|
||||
@@ -114,7 +115,7 @@ class ServerType(object):
|
||||
elif operation == 'sql':
|
||||
res = 'psql'
|
||||
else:
|
||||
raise Exception(
|
||||
raise InternalServerError(
|
||||
_("Could not find the utility for the operation '%s'").format(
|
||||
operation
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user