Skip to content

Commit

Permalink
A few updates
Browse files Browse the repository at this point in the history
- updated requirements.txt with new versions
- removed pre-commit
- added another exception in hopes that it gives better output on ssh error
  • Loading branch information
djotaku committed Jul 28, 2024
1 parent 22d28f4 commit 866e4f7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pyvenv.cfg
*/*.mypy_cache/*
.idea/
snapintime/utils/.mypy_cache/
venv
15 changes: 0 additions & 15 deletions .pre-commit-config.yaml

This file was deleted.

14 changes: 2 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
attrs~=21.4.0
mypy~=0.950
packaging~=21.3
pluggy~=1.0.0
py~=1.11.0
pyparsing~=3.0.8
pytest~=7.1.2
xdgenvpy~=2.3.5

wheel~=0.37.1
Pygments~=2.12.0
rich~=12.3.0
xdgenvpy
rich
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ classifiers =
include_package_data = True
packages = find:
install_requires =
xdgenvpy == 2.3.5
rich == 12.3.0
xdgenvpy == 2.4.0
rich == 13.7.1
2 changes: 1 addition & 1 deletion snapintime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Eric Mesa"
__version__ = "2.1.2"
__version__ = "2.2.0"
__license__ = "GNU GPL v3.0"
__copyright__: str = "(c) 2014 - 2023 Eric Mesa"
__email__: str = "ericsbinaryworld at gmail dot com"
Expand Down
3 changes: 2 additions & 1 deletion snapintime/remote_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def btrfs_send_receive(local_subvols: list, remote_subvol: str, backup_location:
"Return Code": raw_result.returncode,
"Output": raw_result.stdout,
}

except subprocess.CalledProcessError as e:
return {"Command": e.cmd, "Return Code:": e.returncode, "Output": e.stderr}
except subprocess.SubprocessError as e:
return {"Command": e.args, "Return Code": e.returncode, "Output": e.stderr} # type: ignore

Expand Down

0 comments on commit 866e4f7

Please sign in to comment.