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)
1
Konular (issue)
1
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
8aa5869f
Kaydet (Commit)
8aa5869f
authored
Ara 26, 2005
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simpler exception printing
üst
818642a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
pisi-cli
pisi-cli
+2
-8
__init__.py
pisi/__init__.py
+2
-2
No files found.
pisi-cli
Dosyayı görüntüle @
8aa5869f
...
@@ -52,16 +52,10 @@ Please file a bug report. (http://bugs.uludag.org.tr)"""))
...
@@ -52,16 +52,10 @@ Please file a bug report. (http://bugs.uludag.org.tr)"""))
show_traceback
=
ctx
.
get_option
(
'debug'
)
show_traceback
=
ctx
.
get_option
(
'debug'
)
ui
.
error
(
_
(
"System Error. Program Terminated."
))
ui
.
error
(
_
(
"System Error. Program Terminated."
))
# NB: we know this breaks latin-1, it was added by meren
# to circumvent turkish errors when printing python exceptions
v
=
''
for
e
in
value
.
args
:
v
+=
str
(
e
)
+
'
\n
'
if
ctx
.
get_option
(
'debug'
):
if
ctx
.
get_option
(
'debug'
):
ui
.
error
(
"
%
s:
%
s"
%
(
exception
,
v
))
ui
.
error
(
u"
%
s:
%
s"
%
(
exception
,
value
))
else
:
else
:
ui
.
error
(
v
)
ui
.
error
(
unicode
(
value
)
)
ui
.
info
(
_
(
"Please use 'pisi help' for general help."
))
ui
.
info
(
_
(
"Please use 'pisi help' for general help."
))
...
...
pisi/__init__.py
Dosyayı görüntüle @
8aa5869f
...
@@ -21,11 +21,11 @@ __all__ = [ 'api', 'config', 'packagedb', 'installdb', 'search' ]
...
@@ -21,11 +21,11 @@ __all__ = [ 'api', 'config', 'packagedb', 'installdb', 'search' ]
class
Exception
(
Exception
):
class
Exception
(
Exception
):
"""Class of exceptions that must be caught and handled within PISI"""
"""Class of exceptions that must be caught and handled within PISI"""
def
__str__
(
self
):
def
__str__
(
self
):
s
=
''
s
=
u
''
for
x
in
self
.
args
:
for
x
in
self
.
args
:
if
s
!=
''
:
if
s
!=
''
:
s
+=
'
\n
'
s
+=
'
\n
'
s
+=
x
.
encode
(
'utf-8'
)
s
+=
unicode
(
x
)
return
s
return
s
class
Error
(
Exception
):
class
Error
(
Exception
):
...
...
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