Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
b4466e8c
Kaydet (Commit)
b4466e8c
authored
Agu 30, 2020
tarafından
frknkrc44
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug fixes 26
üst
6e797d54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
inary-cli
inary-cli
+6
-8
No files found.
inary-cli
Dosyayı görüntüle @
b4466e8c
...
...
@@ -23,7 +23,7 @@ import inary
import
inary.cli
import
inary.context
as
ctx
import
inary.db
from
inary.errors
import
Error
from
inary.errors
import
Error
,
ParserError
import
inary.util
from
inary.cli
import
inarycli
...
...
@@ -49,7 +49,11 @@ def handle_exception(exception, value, tb):
ui
=
inary
.
cli
.
CLI
()
# make a temporary UI
show_traceback
=
False
if
isinstance
(
value
,
Error
):
if
isinstance
(
value
,
ParserError
):
show_traceback
=
True
ui
.
error
(
_
(
"
\n
Unhandled internal exception.
\n
"
"Please file a bug report to <https://github.com/SulinOS/inary/issues>."
))
elif
isinstance
(
value
,
Error
):
ui
.
error
(
_
(
"Program terminated."
))
elif
isinstance
(
value
,
KeyboardInterrupt
):
ui
.
error
(
_
(
"
\n
Keyboard Interrupt [Ctrl-C]: Exiting..."
))
...
...
@@ -57,12 +61,6 @@ def handle_exception(exception, value, tb):
elif
isinstance
(
value
,
EOFError
):
ui
.
error
(
_
(
"
\n
Keyboard Interrupt [Ctrl-D]: Exiting..."
))
exit
()
"""
elif isinstance(value, Error):
show_traceback = True
ui.error(_("
\n
Unhandled internal exception.
\n
"
"Please file a bug report to <https://github.com/SulinOS/inary/issues>."))
"""
elif
isinstance
(
value
,
IOError
)
and
value
.
errno
==
errno
.
EPIPE
:
# Ignore broken pipe errors
sys
.
exit
(
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment