mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 22:24:16 +02:00
flake warnings (#304)
This commit is contained in:
@@ -26,7 +26,7 @@ def should_sync(logger: logging.Logger):
|
||||
msg = "Package databases already synchronized"
|
||||
logger.info(msg)
|
||||
return False
|
||||
except:
|
||||
except Exception:
|
||||
logger.warning("Could not convert the database synchronization time from '{}".format(SYNC_FILE))
|
||||
traceback.print_exc()
|
||||
return True
|
||||
@@ -37,6 +37,6 @@ def register_sync(logger: Logger):
|
||||
Path('/'.join(SYNC_FILE.split('/')[0:-1])).mkdir(parents=True, exist_ok=True)
|
||||
with open(SYNC_FILE, 'w+') as f:
|
||||
f.write(str(int(time.time())))
|
||||
except:
|
||||
except Exception:
|
||||
logger.error("Could not write to mirrors sync file '{}'".format(SYNC_FILE))
|
||||
traceback.print_exc()
|
||||
|
||||
Reference in New Issue
Block a user