Skip to content

Commit be30998

Browse files
committed
Simplify knowledge of whether OMERO.py is on the path
1 parent 9779c38 commit be30998

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

omero_reader/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
try:
2121
import omero.clients
2222
OMERO_IMPORTED = True
23-
except Exception, e:
24-
OMERO_IMPORTED = False
23+
except ImportError:
24+
pass
2525

2626
log = logging.getLogger(__name__)
2727

omero_reader/utils/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,3 @@ def omero_reader_enabled():
2222
except ValueError:
2323
log.error("OMERO_READER_ENABLED value should be 0 or 1")
2424
return False
25-
26-
27-
def omero_on_the_path():
28-
return 'omero.clients' in sys.modules

0 commit comments

Comments
 (0)