diff --git a/figshare/Article.py b/figshare/Article.py index 0a630b5..8846f11 100644 --- a/figshare/Article.py +++ b/figshare/Article.py @@ -515,7 +515,7 @@ def get_file_size_of_given_path(self, dir_path, include_only=""): fp = os.path.join(path, f) try: size += os.path.getsize(fp) - except: + except Exception as e: pass return size