Skip to content

Commit

Permalink
Defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jouellnyc committed Apr 20, 2023
1 parent ff01517 commit c762826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbapp/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def news_file_is_current(self):
print(f"Checking {self.news_file} as news file") if self.DEBUG else None
try:
if os.stat(self.news_file):
print(f"{os.stat(self.news_file)[6]/1024} k")
print('News File Exists: OK')
print(f"{os.stat(self.news_file)[6]/1024} k") if self.DEBUG else None
print('News File Exists: OK') if self.DEBUG else None
return True
except OSError as e:
print(f"{self.news_file} - Error: {e}")
Expand All @@ -130,7 +130,7 @@ def rm_old_news(self):

def save_news_file(self):
try:
print(f"Trying to save news to {self.news_file}")
print(f"Trying to save news to {self.news_file}") if self.DEBUG else None
self.request.save(self.news_file)
except OSError:
print(f"{self.news_file} - news save Failed: {e}")
Expand Down

0 comments on commit c762826

Please sign in to comment.