Debian Codegraph @

debian/patches/dgit-changes

raw
1 From:
2 Subject: Debian changes
3
4 The Debian packaging of python-asusrouter is maintained in git, using a workflow
5 similar to the one described in dgit-maint-merge(7).
6 The Debian delta is represented by this one combined patch; there isn't a
7 patch queue that can be represented as a quilt series.
8
9 A detailed breakdown of the changes is available from their canonical
10 representation -- git commits in the packaging repository.
11 For example, to see the changes made by the Debian maintainer in the first
12 upload of upstream version 1.2.3, you could use:
13
14 % git clone https://git.dgit.debian.org/python-asusrouter
15 % cd python-asusrouter
16 % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
17
18 (If you have dgit, use `dgit clone python-asusrouter`, rather than plain `git clone`.)
19
20 We don't use debian/source/options single-debian-patch because it has bugs.
21 Therefore, NMUs etc. may nevertheless have made additional patches.
22
23 ---
24
25 diff --git a/asusrouter/tools/converters.py b/asusrouter/tools/converters.py
26 index 60c80d8..7c0b76a 100644
27 --- a/asusrouter/tools/converters.py
28 +++ b/asusrouter/tools/converters.py
29 @@ -612,10 +612,10 @@ def safe_timestamp_to_utc(value: int | None) -> datetime | None:
30
31 try:
32 return datetime.fromtimestamp(value, UTC)
33 - except (ValueError, TypeError, OSError):
34 + except (OverflowError, ValueError, TypeError, OSError):
35 try:
36 return datetime.fromtimestamp(value / 1000, UTC)
37 - except (ValueError, TypeError, OSError):
38 + except (OverflowError, ValueError, TypeError, OSError):
39 return None
40
41