Skip to content

Commit

Permalink
catch explicit exception
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 30, 2020
1 parent 49fc250 commit cd3f631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/desiutil/redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def get_libc():
# Linux systems
_c_stdout = ctypes.c_void_p.in_dll(_libc, 'stdout')
_c_stderr = ctypes.c_void_p.in_dll(_libc, 'stderr')
except:
except ValueError:
try:
# Darwin
_c_stdout = ctypes.c_void_p.in_dll(_libc, '__stdoutp')
_c_stderr = ctypes.c_void_p.in_dll(_libc, '__stdoutp')
except:
except ValueError:
# Neither!
pass
return (_libc, _c_stdout, _c_stderr)
Expand Down

0 comments on commit cd3f631

Please sign in to comment.