Skip to content
Snippets Groups Projects
Commit 2ca54933 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX STYLE: Added explicit exceptions.

parent 1437e4cd
No related branches found
No related tags found
1 merge request!12DOC: Fix and extend documentation on inheritance
...@@ -51,7 +51,7 @@ from caosdb.connection.connection import configure_connection, get_connection ...@@ -51,7 +51,7 @@ from caosdb.connection.connection import configure_connection, get_connection
from caosdb.exceptions import * from caosdb.exceptions import *
try: try:
from caosdb.version import version as __version__ from caosdb.version import version as __version__
except: except ModuleNotFoundError:
version = "uninstalled" version = "uninstalled"
__version__ = version __version__ = version
......
...@@ -43,7 +43,7 @@ from caosdb.exceptions import (CaosDBException, HTTPClientError, ...@@ -43,7 +43,7 @@ from caosdb.exceptions import (CaosDBException, HTTPClientError,
HTTPURITooLongError) HTTPURITooLongError)
try: try:
from caosdb.version import version from caosdb.version import version
except: except ModuleNotFoundError:
version = "uninstalled" version = "uninstalled"
from pkg_resources import resource_filename from pkg_resources import resource_filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment