Skip to content

Commit

Permalink
fix: add exception for tmp file case
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Mar 22, 2023
1 parent fa5a820 commit b1e47de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vega_sim/null_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@ def get_database_size(self):
fp = os.path.join(dirpath, f)
# skip if it is symbolic link
if not os.path.islink(fp):
total_size += os.path.getsize(fp)
try:
total_size += os.path.getsize(fp)
except FileNotFoundError:
logging.debug(f"No such file or directory: {fp}")

return total_size

0 comments on commit b1e47de

Please sign in to comment.