You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nix_update/version/__init__.py
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
fromtypingimportProtocol
5
5
fromurllib.parseimportParseResult
6
6
7
-
from ..errorsimportVersionError
7
+
fromnix_update.errorsimportVersionError
8
+
8
9
from .bitbucketimportfetch_bitbucket_snapshots, fetch_bitbucket_versions
9
10
from .crateimportfetch_crate_versions
10
11
from .giteaimportfetch_gitea_snapshots, fetch_gitea_versions
@@ -131,10 +132,8 @@ def fetch_latest_version(
131
132
)
132
133
133
134
ifunstable:
134
-
raiseVersionError(
135
-
f"Found an unstable version {unstable[0]}, which is being ignored. To update to unstable version, please use '--version=unstable'"
136
-
)
135
+
msg=f"Found an unstable version {unstable[0]}, which is being ignored. To update to unstable version, please use '--version=unstable'"
136
+
raiseVersionError(msg)
137
137
138
-
raiseVersionError(
139
-
"Please specify the version. We can only get the latest version from codeberg/crates.io/gitea/github/gitlab/pypi/savannah/sourcehut/rubygems/npm projects right now"
140
-
)
138
+
msg="Please specify the version. We can only get the latest version from codeberg/crates.io/gitea/github/gitlab/pypi/savannah/sourcehut/rubygems/npm projects right now"
0 commit comments