prim-ctrl 0.7.3__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/PKG-INFO +1 -1
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/prim_ctrl/__main__.py +8 -8
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/pyproject.toml +1 -1
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/LICENSE +0 -0
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/README.md +0 -0
- {prim_ctrl-0.7.3 → prim_ctrl-0.7.4}/prim_ctrl/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: prim-ctrl
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: Primitive Ctrl - Remote control of your phone's Primitive FTPd Android SFTP server and optionally Tailscale VPN.
|
|
5
5
|
Home-page: https://github.com/lmagyar/prim-ctrl
|
|
6
6
|
License: Apache-2.0
|
|
@@ -69,8 +69,8 @@ class Logger(logging.Logger):
|
|
|
69
69
|
if self.level == logging.NOTSET:
|
|
70
70
|
self.setLevel(logging.WARNING if silent else logging.INFO)
|
|
71
71
|
|
|
72
|
-
def exception_or_error(self, e: Exception
|
|
73
|
-
if
|
|
72
|
+
def exception_or_error(self, e: Exception):
|
|
73
|
+
if self.level == logging.NOTSET or self.level == logging.DEBUG:
|
|
74
74
|
logger.exception(e)
|
|
75
75
|
else:
|
|
76
76
|
if hasattr(e, '__notes__'):
|
|
@@ -986,24 +986,24 @@ class Control:
|
|
|
986
986
|
try:
|
|
987
987
|
await phone.remote_sftp.stop(10, 30)
|
|
988
988
|
except Exception as e:
|
|
989
|
-
logger.exception_or_error(e
|
|
989
|
+
logger.exception_or_error(e)
|
|
990
990
|
if restore_state is None or not restore_state.get(Control.PHONE_VPN, stop_only_started):
|
|
991
991
|
try:
|
|
992
992
|
await phone.vpn.stop(10, 60)
|
|
993
993
|
except Exception as e:
|
|
994
|
-
logger.exception_or_error(e
|
|
994
|
+
logger.exception_or_error(e)
|
|
995
995
|
else:
|
|
996
996
|
if (restore_state is None or not restore_state.get(Control.PHONE_SFTP, stop_only_started)):
|
|
997
997
|
try:
|
|
998
998
|
await phone.zeroconf_sftp.stop(10, 30)
|
|
999
999
|
except Exception as e:
|
|
1000
|
-
logger.exception_or_error(e
|
|
1000
|
+
logger.exception_or_error(e)
|
|
1001
1001
|
if local.vpn:
|
|
1002
1002
|
if restore_state is None or not restore_state.get(Control.LOCAL_VPN, stop_only_started):
|
|
1003
1003
|
try:
|
|
1004
1004
|
await local.vpn.stop(10, 30)
|
|
1005
1005
|
except Exception as e:
|
|
1006
|
-
logger.exception_or_error(e
|
|
1006
|
+
logger.exception_or_error(e)
|
|
1007
1007
|
match args.intent:
|
|
1008
1008
|
case 'test':
|
|
1009
1009
|
if local.vpn and phone.vpn and phone.remote_sftp and phone.state:
|
|
@@ -1089,7 +1089,7 @@ class Control:
|
|
|
1089
1089
|
try:
|
|
1090
1090
|
await _stop(state, stop_only_started = True)
|
|
1091
1091
|
except Exception as e:
|
|
1092
|
-
logger.exception_or_error(e
|
|
1092
|
+
logger.exception_or_error(e)
|
|
1093
1093
|
raise
|
|
1094
1094
|
else:
|
|
1095
1095
|
try:
|
|
@@ -1213,7 +1213,7 @@ async def main():
|
|
|
1213
1213
|
await args.ctor().run(args)
|
|
1214
1214
|
|
|
1215
1215
|
except Exception as e:
|
|
1216
|
-
logger.exception_or_error(e
|
|
1216
|
+
logger.exception_or_error(e)
|
|
1217
1217
|
|
|
1218
1218
|
return logger.exitcode
|
|
1219
1219
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "prim-ctrl"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.4"
|
|
4
4
|
description = "Primitive Ctrl - Remote control of your phone's Primitive FTPd Android SFTP server and optionally Tailscale VPN."
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
authors = ["Laszlo Magyar <lmagyar1973@gmail.com>"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|