Skip to content

Commit c8bfe39

Browse files
author
Justin Merrell
committed
fix: linted
1 parent 5345d1a commit c8bfe39

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runpod/serverless/pod_worker.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ def start_worker():
4343
# -------------------------------- Job Cleanup ------------------------------- #
4444
shutil.rmtree("input_objects", ignore_errors=True)
4545
shutil.rmtree("output_objects", ignore_errors=True)
46-
os.remove('output.zip') if os.path.exists('output.zip') else None
46+
47+
if os.path.exists('output.zip'):
48+
os.remove('output.zip')
4749

4850
worker_life.reset_worker_ttl()
4951

5052
if os.environ.get('TEST_LOCAL', 'false') == 'true':
5153
log("Local testing complete, exiting.")
5254
break
53-
54-
55-
if __name__ == '__main__':
56-
start_worker()

0 commit comments

Comments
 (0)