Skip to content

Commit

Permalink
Experimental change
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Dec 28, 2023
1 parent 6b7d4e5 commit 736ea43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drms/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def dir(self): # NOQA: A003
"""
(string) Common directory of the requested files on the server.
"""
if self.has_finished(skip_update=True):
if self.has_finished(skip_update=False):
self._raise_on_error()
else:
self.wait()
Expand All @@ -291,7 +291,7 @@ def data(self):
Returns a pandas.DataFrame containing the records and filenames
of the export request (DataFrame columns: 'record', 'filename').
"""
if self.has_finished(skip_update=True):
if self.has_finished(skip_update=False):
self._raise_on_error()
else:
self.wait()
Expand All @@ -302,7 +302,7 @@ def tarfile(self):
"""
(string) Filename, if a TAR file was requested.
"""
if self.has_finished(skip_update=True):
if self.has_finished(skip_update=False):
self._raise_on_error()
else:
self.wait()
Expand All @@ -314,7 +314,7 @@ def keywords(self):
"""
(string) Filename of textfile containing record keywords.
"""
if self.has_finished(skip_update=True):
if self.has_finished(skip_update=False):
self._raise_on_error()
else:
self.wait()
Expand Down Expand Up @@ -450,7 +450,7 @@ def wait(self, *, timeout=None, sleep=5, retries_notfound=5):
retries_notfound = int(retries_notfound)

# We are done, if the request has already finished.
if self.has_finished(skip_update=True):
if self.has_finished(skip_update=False):
self._raise_on_error()
return True

Expand Down

0 comments on commit 736ea43

Please sign in to comment.