Skip to content

Commit

Permalink
Merge pull request dalibo#70 from olasd/bugfix/none_database
Browse files Browse the repository at this point in the history
process['database'] can be None for some maintenance processes
  • Loading branch information
julmon authored Oct 31, 2017
2 parents 919e1cb + e9d4ab1 commit d9bb784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgactivity/UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ def __refresh_line(self, process, flag, indent, \
l_lineno,
colno,
PGTOP_COLS[self.mode]['database']['template_h'] % \
(process['database'][:16],),
(str(process['database'])[:16],),
self.line_colors['database'][typecolor])
if self.mode == 'activities':
if flag & PGTOP_FLAG_USER:
Expand Down

0 comments on commit d9bb784

Please sign in to comment.