We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4eea9 commit 30b39cbCopy full SHA for 30b39cb
qiita_db/base.py
@@ -25,7 +25,6 @@
25
# -----------------------------------------------------------------------------
26
from qiita_core.exceptions import IncompetentQiitaDeveloperError
27
from qiita_core.qiita_settings import qiita_config
28
-from psycopg2.errors import InvalidTextRepresentation
29
import qiita_db as qdb
30
31
@@ -187,7 +186,9 @@ def __init__(self, id_):
187
186
self._check_subclass()
188
try:
189
_id = self._check_id(id_)
190
- except InvalidTextRepresentation:
+ except ValueError as error:
+ if 'INVALID_TEXT_REPRESENTATION' not in str(error):
191
+ raise error
192
_id = False
193
194
if not _id:
0 commit comments