Skip to content

Commit

Permalink
fix: remove unused error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nialov committed Nov 28, 2021
1 parent 6757bc3 commit 7042fc5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from itertools import chain
from pathlib import Path
from time import strftime
from warnings import warn

from invoke import task

Expand Down Expand Up @@ -47,10 +46,7 @@ def update_version(c):
"""
Update pyproject.toml and package/__init__.py version strings.
"""
try:
c.run("nox --session update_version")
except Exception:
logging.error("Unexpected error with update-version task.", exc_info=True)
c.run("nox --session update_version")


@task(pre=[requirements, update_version])
Expand Down Expand Up @@ -187,7 +183,7 @@ def pre_commit(c, only_run=False, only_install=False):
@task(pre=[prepush], post=[pre_commit])
def tag(c, tag="", annotation=""):
"""
Make new tag and update version strings accordingly
Make new tag and update version strings accordingly.
"""
if len(tag) == 0:
raise ValueError("Tag string must be specified with '--tag=*'.")
Expand Down

0 comments on commit 7042fc5

Please sign in to comment.