Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #367 from PanDAWMS/next
Browse files Browse the repository at this point in the history
2.12.6.1
  • Loading branch information
PalNilsson authored Sep 23, 2021
2 parents 215f2de + d8545d7 commit a93383e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PILOTVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.12.5.4
2.12.6.1
4 changes: 2 additions & 2 deletions pilot/util/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# Pilot version
RELEASE = '2' # released number should be fixed at 2 for Pilot 2
VERSION = '12' # version number is '1' for first real Pilot 2 release, '0' until then, increased for bigger updates
REVISION = '5' # revision number should be reset to '1' for every new version release, increased for small updates
BUILD = '4' # build number should be reset to '1' for every new development cycle
REVISION = '6' # revision number should be reset to '1' for every new version release, increased for small updates
BUILD = '1' # build number should be reset to '1' for every new development cycle

SUCCESS = 0
FAILURE = 1
Expand Down
7 changes: 5 additions & 2 deletions pilot/util/filehandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,9 @@ def get_disk_usage(start_path='.'):
fp = os.path.join(dirpath, f)
# skip if it is symbolic link
if os.path.exists(fp) and not os.path.islink(fp):
total_size += os.path.getsize(fp)

try:
total_size += os.path.getsize(fp)
except Exception as exc: # change to FileNotFoundError in Pilot 3 for Python 3
logger.warning('caught exception: %s (skipping this file)', exc)
continue
return total_size

0 comments on commit a93383e

Please sign in to comment.