Skip to content

Commit

Permalink
Narrower except clause in BatchSystem.free()
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Apr 27, 2018
1 parent 25a688c commit cbc2b4f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gc3libs/backends/batch.py
Expand Up @@ -4,7 +4,7 @@
This module provides a generic BatchSystem class from which all
batch-like backends should inherit.
"""
# Copyright (C) 2009-2016 S3IT, Zentrale Informatik, University of Zurich. All rights reserved.
# Copyright (C) 2009-2018 University of Zurich. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -760,10 +760,9 @@ def free(self, app):
try:
self.transport.connect()
self.transport.remove_tree(job.ssh_remote_folder)
except:
except Exception as err:
log.warning("Failed removing remote folder '%s': %s: %s",
job.ssh_remote_folder, sys.exc_info()[0],
sys.exc_info()[1])
job.ssh_remote_folder, err.__class__, err)
return

@same_docstring_as(LRMS.get_results)
Expand Down

0 comments on commit cbc2b4f

Please sign in to comment.