Skip to content

Commit

Permalink
🐛 fix(cli): move variable assignment inside try block
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Oct 5, 2024
1 parent 9d8bf79 commit 264ece6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsticker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@


async def check_for_updates():
CURRENT_VERSION = metadata.version("tsticker")
try:
CURRENT_VERSION = metadata.version("tsticker")
response = requests.get(PYPI_URL)
if response.status_code == 200:
package_info = response.json()
Expand Down

0 comments on commit 264ece6

Please sign in to comment.