Skip to content

Commit 486169a

Browse files
UtumnoInfernio
authored andcommitted
One less print
1 parent f69f6d4 commit 486169a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Mopy/bash/patcher/patchers/multitweak_assorted.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import random
2929
import re
3030
# Internal
31-
from ...bolt import GPath
31+
from ...bolt import GPath, deprint
3232
from ...brec import MreRecord
3333
from ... import load_order
3434
from ... import bush # from ....bush import game ? # should be set by now !
@@ -1735,10 +1735,11 @@ def apply(self,modFile,record,bashTags):
17351735
else:
17361736
override.iconPath = icons
17371737
except ValueError as error:
1738-
print override._Type
1739-
print icons
1740-
print error
1741-
print self.patchFile.Current.Debug_DumpModFiles()
1738+
error_msg = u'%s: %s\n' % (self.tweak_name, error)
1739+
error_msg += u'override._Type: %s\nicons: %s\n' % (
1740+
override._Type, icons)
1741+
error_msg += self.patchFile.Current.Debug_DumpModFiles()
1742+
deprint(error_msg)
17421743
raise
17431744
self.mod_count[modFile.GName] += 1
17441745
record.UnloadRecord()

0 commit comments

Comments
 (0)