Skip to content

Commit

Permalink
Merge pull request #53 from djotaku/fix_remote_dict_error
Browse files Browse the repository at this point in the history
Fix for dictionaries so that missing keys don't crash the program
  • Loading branch information
djotaku authored Sep 18, 2024
2 parents 5a8cd52 + a592c45 commit 8a27e0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
xdgenvpy
rich
xdgenvpy == 2.4.0
rich == 13.7.1
4 changes: 2 additions & 2 deletions snapintime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__author__ = "Eric Mesa"
__version__ = "2.2.0"
__version__ = "2.2.1"
__license__ = "GNU GPL v3.0"
__copyright__: str = "(c) 2014 - 2023 Eric Mesa"
__copyright__: str = "(c) 2014 - 2024 Eric Mesa"
__email__: str = "ericsbinaryworld at gmail dot com"


Expand Down
2 changes: 1 addition & 1 deletion snapintime/create_local_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main(): # pragma: no cover
our_config = config.import_config()
results = iterate_configs(date_time_for_backup, our_config)
for result in results:
log.info(f"Ran: {result['Command']}. Command had a return code of {result['Return Code']}")
log.info(f"Ran: {result.get('Command')}. Command had a return code of {result.get('Return Code')}")
log.info(f"Result was: {str(result['Output'])}")


Expand Down
2 changes: 1 addition & 1 deletion snapintime/remote_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def main(): # pragma: no cover
our_config = config.import_config()
results = iterate_over_subvolumes(our_config)
for result in results:
log.info(f"\nRan {result['Command']} with a return code of {result['Return Code']}")
log.info(f"\nRan {result.get('Command')} with a return code of {result.get('Return Code')}")
log.info(f"Result was: {str(result['Output'])}\n")


Expand Down

0 comments on commit 8a27e0e

Please sign in to comment.