Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
69380288
Commit
69380288
authored
2 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
mo.util: Typ pro exc_info
parent
87b16f46
Branches
Branches containing commit
No related tags found
1 merge request
!120
Mailové upozornění na interní chyby
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/util.py
+5
-1
5 additions, 1 deletion
mo/util.py
with
5 additions
and
1 deletion
mo/util.py
+
5
−
1
View file @
69380288
...
...
@@ -10,7 +10,8 @@ import os
import
re
import
secrets
import
sys
from
typing
import
Any
,
Optional
,
NoReturn
,
Tuple
,
TypeVar
,
List
from
types
import
TracebackType
from
typing
import
Any
,
Optional
,
NoReturn
,
Tuple
,
TypeVar
,
List
,
Union
import
mo
import
mo.db
as
db
...
...
@@ -25,6 +26,9 @@ logger = logging.getLogger('mo')
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
propagate
=
True
# Typ vracený sys.exc_info()
ExceptionInfo
=
Union
[
Tuple
[
type
,
BaseException
,
TracebackType
],
Tuple
[
None
,
None
,
None
]]
def
get_now
()
->
datetime
.
datetime
:
return
datetime
.
datetime
.
now
(
tz
=
dateutil
.
tz
.
UTC
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment