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

Commit a93383e

Browse files
authored
Merge pull request #367 from PanDAWMS/next
2.12.6.1
2 parents 215f2de + d8545d7 commit a93383e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

PILOTVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.12.5.4
1+
2.12.6.1

pilot/util/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# Pilot version
1414
RELEASE = '2' # released number should be fixed at 2 for Pilot 2
1515
VERSION = '12' # version number is '1' for first real Pilot 2 release, '0' until then, increased for bigger updates
16-
REVISION = '5' # revision number should be reset to '1' for every new version release, increased for small updates
17-
BUILD = '4' # build number should be reset to '1' for every new development cycle
16+
REVISION = '6' # revision number should be reset to '1' for every new version release, increased for small updates
17+
BUILD = '1' # build number should be reset to '1' for every new development cycle
1818

1919
SUCCESS = 0
2020
FAILURE = 1

pilot/util/filehandling.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,9 @@ def get_disk_usage(start_path='.'):
11441144
fp = os.path.join(dirpath, f)
11451145
# skip if it is symbolic link
11461146
if os.path.exists(fp) and not os.path.islink(fp):
1147-
total_size += os.path.getsize(fp)
1148-
1147+
try:
1148+
total_size += os.path.getsize(fp)
1149+
except Exception as exc: # change to FileNotFoundError in Pilot 3 for Python 3
1150+
logger.warning('caught exception: %s (skipping this file)', exc)
1151+
continue
11491152
return total_size

0 commit comments

Comments
 (0)