Spaces:
Runtime error
Runtime error
fix a bug
Browse files
Rodin.py
CHANGED
@@ -144,7 +144,7 @@ class Generator:
|
|
144 |
if 'error' in preprocess_response:
|
145 |
print("Error in image preprocessing:", preprocess_response['error'])
|
146 |
raise RuntimeError
|
147 |
-
elif preprocess_response.get("statusCode") ==
|
148 |
print("Token expired, refreshing token...")
|
149 |
_, self.token = login(self.user_id, self.password)
|
150 |
continue
|
|
|
144 |
if 'error' in preprocess_response:
|
145 |
print("Error in image preprocessing:", preprocess_response['error'])
|
146 |
raise RuntimeError
|
147 |
+
elif preprocess_response.get("statusCode") == 401:
|
148 |
print("Token expired, refreshing token...")
|
149 |
_, self.token = login(self.user_id, self.password)
|
150 |
continue
|