Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 5752ea4

Browse files
committed
fix: revert error response handle edit
1 parent af1e724 commit 5752ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: paperspace/jobs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def logs(params, tail=False, no_logging=False):
7777
else:
7878
try:
7979
res = r.json()
80-
if res in ('error', 'preempted'):
80+
if 'error' in res:
8181
if no_logging:
8282
return res
8383
print_json_pretty(res)

0 commit comments

Comments
 (0)