You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseConfigError('Got redirect while trying to reach server URL. Please try to update it and pass the same URL base which is visible in the browser URL bar. '
63
+
'For example: it should be \'https://www.hybrid-analysis.com\', instead of \'http://www.hybrid-analysis.com\' or \'https://hybrid-analysis.com\'')
61
64
self.api_result_msg=self.prepare_response_msg()
62
65
63
66
defattach_data(self, options):
@@ -74,6 +77,9 @@ def attach_files(self, files):
74
77
defif_request_success(self):
75
78
returnint(int(self.api_response.status_code) /200) ==1# 20x status code
76
79
80
+
defif_request_redirect(self):
81
+
returnint(int(self.api_response.status_code) /300) ==1# 30x status code
82
+
77
83
defprepare_response_msg(self) ->str:
78
84
ifself.api_responseisNone:
79
85
raiseResponseObjectNotExistError('It\'s not possible to get response message since API was not called.')
0 commit comments