Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex O committed Feb 6, 2024
1 parent 5024cf8 commit ab74292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flathunter/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_last_modified_time(self, filename: str) -> Optional[float]:
"""Gets the time the config file was last modified at the time of initialization"""
try:
return os.path.getmtime(filename)
except Exception as e:
except OSError as e:
logger.error(e)
return None

Check warning on line 146 in flathunter/config.py

View check run for this annotation

Codecov / codecov/patch

flathunter/config.py#L144-L146

Added lines #L144 - L146 were not covered by tests

Expand Down

0 comments on commit ab74292

Please sign in to comment.