File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,7 @@ def unit_state(self, value: UnitState) -> None:
78
78
def is_compatible (self ) -> bool :
79
79
"""Whether upgrade is supported from previous versions"""
80
80
assert self .versions_set
81
- try :
82
- previous_version_strs : typing .Dict [str , str ] = json .loads (
83
- self ._app_databag ["versions" ]
84
- )
85
- except KeyError as exception :
86
- logger .debug ("`versions` missing from peer relation" , exc_info = exception )
87
- return False
81
+ previous_version_strs : typing .Dict [str , str ] = json .loads (self ._app_databag ["versions" ])
88
82
# TODO charm versioning: remove `.split("+")` (which removes git hash before comparing)
89
83
previous_version_strs ["charm" ] = previous_version_strs ["charm" ].split ("+" )[0 ]
90
84
previous_versions : typing .Dict [str , poetry_version .Version ] = {
You can’t perform that action at this time.
0 commit comments