]> Nutra Git (v1) - nutratech/cli.git/commitdiff
uncomment raise for status on api client post?
authorShane Jaroch <chown_tee@proton.me>
Fri, 12 Apr 2024 20:44:45 +0000 (16:44 -0400)
committerShane Jaroch <chown_tee@proton.me>
Fri, 12 Apr 2024 20:44:45 +0000 (16:44 -0400)
ntclient/services/api/__init__.py

index 552bffc41faebe43804818c1d60a7fbef1ac97dc..f8f153da262b459fb36a8e90a0b31d63d0572c6a 100644 (file)
@@ -56,7 +56,7 @@ class ApiClient:
             json=data,
             timeout=(REQUEST_CONNECT_TIMEOUT, REQUEST_READ_TIMEOUT),
         )
-        _res.raise_for_status()
+        _res.raise_for_status()
         return _res
 
     # TODO: move this outside class; support with host iteration helper method