Opraveny Python2 printy.

This commit is contained in:
Tomas "Jethro" Pokorny 2019-04-30 22:17:05 +02:00
parent f4763a3040
commit 288dcc747b
2 changed files with 5 additions and 5 deletions

View file

@ -18,10 +18,10 @@ def transform_autor(apps, schema_editor):
oprava.autor_org = org oprava.autor_org = org
oprava.save() oprava.save()
except: except:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
# oprava.delete() # oprava.delete()
else: else:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
oprava.delete() oprava.delete()
# preorgovani komentaru # preorgovani komentaru
@ -35,10 +35,10 @@ def transform_autor(apps, schema_editor):
komentar.autor_org = org komentar.autor_org = org
komentar.save() komentar.save()
except: except:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
# oprava.delete() # oprava.delete()
else: else:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
komentar.delete() komentar.delete()
def back(apps, schema_editor): def back(apps, schema_editor):

View file

@ -19,7 +19,7 @@ try:
application = get_wsgi_application() application = get_wsgi_application()
except Exception: except Exception:
print 'handling WSGI exception' print('handling WSGI exception')
# Error loading applications # Error loading applications
if 'mod_wsgi' in sys.modules: if 'mod_wsgi' in sys.modules:
traceback.print_exc() traceback.print_exc()