Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
westsurname authored May 29, 2024
1 parent 3a356d0 commit 49acde1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blackhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async def is_accessible(path, timeout=10):
finally:
executor.shutdown(wait=False)

time.sleep(1) # Wait before processing the file in case it isn't fully written yet.
time.sleep(.1) # Wait before processing the file in case it isn't fully written yet.
os.renames(file.fileInfo.filePath, file.fileInfo.filePathProcessing)

with open(file.fileInfo.filePathProcessing, 'rb' if file.torrentInfo.isDotTorrentFile else 'r') as f:
Expand Down
2 changes: 2 additions & 0 deletions shared/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def retryRequest(
else:
print(f"URL: {response.url}")
print(f"Status code: {response.status_code}")
print(f"Message: {response.reason}")
print(f"Response: {response.content}")
print(f"Attempt {attempt + 1} failed")
if attempt < retries:
print(f"Retrying in {delay} seconds...")
Expand Down

0 comments on commit 49acde1

Please sign in to comment.