File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/together/lib/cli/api/beta/jig Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -505,11 +505,9 @@ def state(self) -> State:
505505 def registry (self ) -> str :
506506 """Get registry and namespace for current user"""
507507 if not self .state .registry_base_path :
508- response = self .together ._client .get ("/image-repositories/base-path" , headers = self .together .auth_headers )
509- if not response .is_success :
510- raise JigError (f"Failed to get registry path (HTTP { response .status_code } )" )
508+ response = self .together .get ("/image-repositories/base-path" , cast_to = dict [str , str ])
511509 # strip protocol for docker image format
512- self .state .registry_base_path = response . json () ["base-path" ].split ("://" , 1 )[- 1 ]
510+ self .state .registry_base_path = response ["base-path" ].split ("://" , 1 )[- 1 ]
513511 self .state .save ()
514512 return self .state .registry_base_path + "/"
515513
You can’t perform that action at this time.
0 commit comments