File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
octoprint_firmware_check/checks Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
from flask_babel import gettext
5
5
from octoprint .util .version import get_comparable_version
6
- from packaging .version import InvalidVersion
7
6
8
7
from . import AuthorCheck , Check , NegativeCapCheck , Severity
9
8
@@ -97,7 +96,7 @@ def _broken_version(self, line):
97
96
version_str = line [len (self .VERSION ) :]
98
97
try :
99
98
version = get_comparable_version (version_str , base = True )
100
- except InvalidVersion :
99
+ except Exception :
101
100
version = None
102
101
103
102
if version is not None and version < self .FIXED_VERSION :
@@ -168,7 +167,7 @@ class MalyanM200Check(Check):
168
167
def m115 (self , name , data ):
169
168
try :
170
169
version = get_comparable_version (data .get ("VER" , "0" ))
171
- except InvalidVersion :
170
+ except Exception :
172
171
version = None
173
172
174
173
self ._triggered = (
@@ -237,7 +236,7 @@ def _extract_repetier_version(self, name):
237
236
_ , version = name .split ("_" , 1 )
238
237
try :
239
238
version = get_comparable_version (version , base = True )
240
- except InvalidVersion :
239
+ except Exception :
241
240
pass
242
241
return version
243
242
You can’t perform that action at this time.
0 commit comments