diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-09-11 11:28:21 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-09-11 11:28:21 -0300 |
commit | 0131ebe6e3d80111cf13d9c21c6175e970a6bbd2 (patch) | |
tree | 3b7856e5233c66a06387bd04a0ddc9c954d2c07e /src/leap | |
parent | dd489b4785b2a534e7a1a70027b38bb42c2470c7 (diff) | |
parent | 16fbe19986b8cc36873b24bd2b8f61cffd1b1d29 (diff) |
Merge remote-tracking branch 'kali/hotfix/fix-first' into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/util/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/util/__init__.py b/src/leap/bitmask/util/__init__.py index 6dd18bcf..78efcb6e 100644 --- a/src/leap/bitmask/util/__init__.py +++ b/src/leap/bitmask/util/__init__.py @@ -27,7 +27,7 @@ def first(things): """ try: return things[0] - except TypeError: + except (IndexError, TypeError): return None |