Skip to content

Commit

Permalink
Fix CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhubonan committed Apr 27, 2023
1 parent 5fb7da4 commit 238d9b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -15,8 +15,8 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
auto-update-conda: true
python-version: ${{ matrix.python-version }}

- name: Install airss
shell: bash -el {0}
Expand Down
4 changes: 2 additions & 2 deletions airsspy/build.py
Expand Up @@ -62,10 +62,10 @@ def generate(self, timeout=10, write_cell=None):
self.bc_in = cell
try:
self.bc_out, self.bc_err = bc_proc.communicate(input=cell, timeout=timeout)
except sbp.TimeoutExpired:
except sbp.TimeoutExpired as excep:
bc_proc.kill()
self.bc_out, self.bc_err = bc_proc.communicate()
raise BuildcellError
raise BuildcellError() from excep
else:
bc_proc.kill()

Expand Down
4 changes: 1 addition & 3 deletions airsspy/common.py
Expand Up @@ -23,6 +23,4 @@


class BuildcellError(RuntimeError):
"""Exception for not been able to build the random cell"""

pass
"""Exception for not been able to build the random cell"""

0 comments on commit 238d9b0

Please sign in to comment.