From 89aa932133cb13abb2cce8abc8d0ce85932cf516 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 8 Mar 2016 11:37:10 +0200 Subject: [PATCH] - Removed second try block in import, isn't needed since I'm just re-raising the exception. --- unshare/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/unshare/__init__.py b/unshare/__init__.py index 3bd6aeb..18b66a8 100644 --- a/unshare/__init__.py +++ b/unshare/__init__.py @@ -4,10 +4,7 @@ import ctypes try: from constants import * except ImportError: - try: - from unshare.constants import * - except BaseException as e: - raise e + from unshare.constants import * libc = ctypes.CDLL('libc.so.6') -- GitLab